I attached the Raspberry Pi Touch Display 2 5 inch screen to a Raspberry Pi 3B.
I installed Bookworm Lite onto an SD card, booted and the display was detected immediately.
Initially the display is in portrait mode but I want to use landscape mode.
There are two settings to change the Raspberry Pi display to landscape mode for both command line and desktop.
Command Line Display Rotation
You need to modify the cmdline.txt file to change the display rotation.
sudo nano /boot/firmware/cmdline.txt
Add the following line to the end of the file:
video=DSI-1:720x1280@60,rotate=<value>
Where <value> is either 0, 90, 180 or 270 which represents the degree of rotation.
Save and reboot.
Desktop GUI Display Rotation
This can be achieved from within the screen preferences in the desktop interface.
Click on the Raspberry Pi symbol in the top left hand corner
Click Preferences > Screen Options.
Click on DSI and then change rotation.
Change the rotation by the preferred amount.