Here's how to in Windows 11:
Windows 11 disables auto-rotation when it detects a physical keyboard. Fold your 2-in-1 laptop into a tablet. Detach the removable keyboard if applicable. Check Quick Settings again for the ungreyed toggle. 2. Disconnect External Monitors auto rotate screen windows 11
Auto-rotation only works on devices with (tablets, 2-in-1 laptops, convertibles). Desktop PCs and most traditional laptops don't have this hardware. Here's how to in Windows 11: Windows 11
On some laptops, auto-rotation only works when the device is in tablet mode or the keyboard is folded back. auto rotate screen windows 11