Orientation Lock prevents the display from rotating itself when the device is turned to landscape mode.
Enable or Disable Orientation Lock
1. For devices that are iPhone 8 and older: Swipe up from the bottom of the display to open the Control Center
For devices that are iPhone X and newer: Swipe down from the top of the display to open the Control Center
2. Find the "Orientation Lock" button
3. Tap on the button to toggle Orientation Lock ON or OFF. (When the Orientation Lock is ON the device will remain in portrait mode when rotated to landscape mode)