Open the Settings app on the iPhone. Tap Display and Brightness. Turn off the “Lift to activate” function.