Maybe the option to rotate the screen is disabled. Let's understand how to rotate computer screen by enabling the option again
Update Graphics Drivers: From Device Manager choose Display Adapters then right-click for Update Driver. Enable Rotation Lock: You can find the rotation lock setting through Settings > System > Display where you should disable it.
Check Graphics Settings: The screen rotation feature needs to be activated inside both Intel and NVIDIA configurations.
Enable Hotkeys: Screen rotation shortcuts become available by "Right-click on desktop" followed by "Graphics Options > Hot Keys" and selecting the appropriate settings for activation.
Run System File Checker: To run the system file checker scan users must first open Command Prompt as an administrator by using sfc /scannow.