To turn off your iPhone, follow these steps:
For iPhone X and newer models:
Press and Hold Buttons:
Press and hold the Side button and either the Volume Up or Volume Down button until the power-off slider appears.
Slide to Power Off:
Drag the slider to the right to turn off your iPhone.
For iPhone 8 and older models:
Press and Hold the Power Button:
Press and hold the Top (or Side) button until the power-off slider appears.
Slide to Power Off:
Drag the slider to the right to turn off your iPhone.
Using Settings (For all models):
Open Settings:
Go to the Settings app on your iPhone.
General:
Scroll down and tap on “General.”
Shut Down:
Scroll to the bottom and tap “Shut Down.”
Slide to Power Off:
Drag the slider to the right to turn off your iPhone.
If your iPhone is unresponsive, you can force restart it, which may help resolve the issue. However, this won’t turn it off permanently but can be useful if it’s frozen.