1.Quickly press and release the Volume Up button.
2.Quickly press and release the Volume Down button.
3.Press and hold the Side button until the Apple logo appears, then release the Side button.
During this process, you will see a slider to power off the phone. You’re going to want to ignore it and continue holding down the Side button until the screen goes black. At that point, the Apple logo will pop up, and after the restart is complete, the screen will activate once again.
Using the force restart process prevents you from having to shut the iPhone down entirely, which takes several more steps.
If you do want to shut the iPhone down, you can do so by going to the General section of the Settings app, scrolling down to the bottom, and choosing the Shut Down option.