It's also likely that you might have accidentally turned on the rotation lock option that prevents your device from rotating. To check if an accessory is causing rotation problems, do the following: If you're using a 2-in-1 device like the Surface Pro, accessories, such as a detachable keyboard or dock can cause screen rotation problems.
VPN Deals: Lifetime license for $16, monthly plans at $1 & more How to fix screen auto-rotation problems on Windows 10 Disconnecting peripherals