To turn on or off your iPhonewith
Face ID, follow these steps: Press and hold the side and volume buttons at the same time until the display of the slider, then move the Power Off slider.
The iPhone's Home button: Drag the slider by pressing and holding the side button or the Sleep/Wake button (depending on your model).
I hope this helps