https://www.raspberrypi.com/documentation/accessories/touch-display-2.html
On Step 4, under Change screen orientation it says:
With a desktop
If you have the Raspberry Pi OS desktop running, you can rotate the display through the Screen Configuration tool:
Go to Preferences > Screen Configuration. This opens the layout editor where you can see your connected displays.
In my current installation of Raspberry PI OS (64 bit) 2025-12-04 (default in latest Raspberry PI Imager) there is no Preferences > Screen available. If you go to Preferences > Control Centre there is an option near the bottom called Screens. This opens a window that shows a small grey rectangle that represents the display. On my machine it says DSI-1. You have to right-click on that rectangle to get the option to rotate and resize the display.
This works very well but is very hard to see on a newly installed 5" display in Portrait mode. Should say:
With a desktop
If you have the Raspberry PI OS desktop running, you can rotate the display through the Control Centre Screens tool:
Go to Preferences > Control Centre > Screens. This opens the layout editor where you can see your connected displays.
If you have more than one display connected, use the Screens drop-down to select DSI-1 or DSI-2 depending on your connections. A screen will appear with a gray rectangle to show the size and orientation of the Touch Display 2. Right-click on the rectangle to show the orientation and scaling options. Select the new settings and click on Apply. When you make a change, a dialog will appear asking you to confirm the new settings. Click OK within 10 seconds to keep the new settings.
https://www.raspberrypi.com/documentation/accessories/touch-display-2.html
On Step 4, under Change screen orientation it says:
In my current installation of Raspberry PI OS (64 bit) 2025-12-04 (default in latest Raspberry PI Imager) there is no Preferences > Screen available. If you go to Preferences > Control Centre there is an option near the bottom called Screens. This opens a window that shows a small grey rectangle that represents the display. On my machine it says DSI-1. You have to right-click on that rectangle to get the option to rotate and resize the display.
This works very well but is very hard to see on a newly installed 5" display in Portrait mode. Should say: