Column formatting is applied regardless of what view it’s used in. It isn’t possible to target a specific view with column formatting. You can, however, do this with view formatting. That may or may not meet your needs, though.
If you have more details about what you’re trying to accomplish, there may be other options.