This article explains how to change the screen orientation in Windows 11.
How to Rotate the Screen in Windows 11
Open the built-in display settings to change the screen orientation.
Right-click on the desktop and choose Display Settings.
You can also open Settings (Win + i) and go to System > Display.