I've seen a few people use VGA scaler custom video modelines to rotate the picture 90 degrees, such as here, mainly to play tate games on a horizontal rotation display.
I have a Mistercade in a CRT candy cab and I mostly play shmups so I like to leave it in tate, but I have just a few horizontal games I'd like to play so I'm looking to do the reverse. Depending on the game I'd either want to resample it down to fit or just keep it full resolution and have it go offscreen, for instance on something like Tetris the Grandmaster where I only need to see the center anyways.
I've been doing a lot of research on modelines but can't really figure out what causes the actual image rotation. It doesn't seem to be a very common use case so I haven't found many examples. For starters I'm specifically looking to do it with the PSX core for the TGM1 PSX romhack.
If this is actually a thing that's possible, can anyone with experience writing modelines tip me in the right direction? I'm a little afraid to just experiment because I'm not sure if I could end up telling my CRT to do something that would damage it.
Thanks in advance for any help!