Can I rotate the whole view of the game by 90 degrees for "tate mode?

I am making a vertical arcade game and would like to have a feature that rotates the whole screen of a game with a constrained aspect ratio, for a “tate” mode. I’ve seen other games like vertical shooters have this option, not sure how to do .

Thanks for any help