Open the Action Center: Click on the Notification icon in the taskbar (it looks like a speech bubble) or press the Windows key + A to open the Action Center.
Disable Auto-rotate: Look for an icon that represents screen rotation or auto-rotation. It may be labeled as "Rotation lock" or have a rotation-related symbol. Click on this icon to disable auto-rotation. When rotation lock is enabled, the icon will appear highlighted or indicate that rotation is locked.
Adjust Display Settings: If the above steps don't resolve the issue, you can try adjusting the display settings directly. Right-click on the desktop and select "Display settings" or "Screen resolution." Look for an option related to screen rotation or auto-rotate and disable it if it's enabled.