With xrandr this works flawlessly.
Example:
Finding out your screen.
~ $ xrandr
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 509mm x 286mm
1920x1080 60.00*+
1600x1200 60.00
1680x1050 59.95
1400x1050 59.98
1280x1024 75.02 60.02
1440x900 74.98 59.89
1280x960 60.00
1152x864 75.00
1024x768 75.03 70.07 60.00
832x624 74.55
800x600 72.19 75.00 60.32 56.25
640x480 75.00 72.81 66.67 59.94
720x400 70.08
Test corresponding screen with rotated resolution.
~ $ xrandr --output DP-1 --rotate left --fb 1080x1920
Reset the corresponding screen.
~ $ xrandr --output DP-1 --rotate normal
If everything works then you can put this into a script and let it start from autostart.