Open Control Center by swiping up from the bottom of the screen (or swiping down from the top right on iPhone X and newer). Tap the Lock Rotation / Lock Orientation button a second time, so that the ...
On your Mac, click the Apple logo > System Settings. Click Lock Screen. Use the drop-down menu beside Turn display off on ...