You may want to rotate the on-screen display orientation depending on how you plan to use your Raspberry Pi Touch Display 2.
Update first!
First, make sure you're running an up-to-date version of Raspberry Pi OS by running the following commands in a terminal window:
sudo apt-get update
sudo apt full-upgrade -y
Rotating the Display
If you have access to the desktop environment, select 'Screen Configuration' from the 'Preferences' menu. Right-click on the touch display rectangle (likely DSI-1) in the layout editor, select 'Orientation', then pick the best option to fit your needs.
No Desktop Access? No problem! Use the following command in a terminal window:
sudo nano /boot/firmware/cmdline.txt
Then add one of the lines to the end of the file, depending on the orientation you need (orientation is controlled by the number at the end:
video=DSI-1:1280x720@60,rotate=0
video=DSI-1:1280x720@60,rotate=90
video=DSI-1:1280x720@60,rotate=180
video=DSI-1:1280x720@60,rotate=270
This information was taken from the Raspberry Pi Documentation Page for the Raspberry Pi Touch Display 2.