The following steps may help prevent your phone’s screen from auto-rotating:
- Check to make sure that the orientation lock is turned off.
- Check if the auto-rotation setting is enabled.
- Force close any active apps that may be contributing to the auto-rotation issue.
- Check to make sure that the device’s accelerometer is working properly.
- Perform a factory reset if the issue persists.