For iPhone 8 and later models: Quickly press and release the Volume Up button. Quickly press and release the Volume Down button. Press and hold the Side (Power) button until you see the Apple logo. For iPhone 7 and 7 Plus: Press and hold both the Side (Power) button and the Volume Down button at the same time. Keep holding the buttons until you see the Apple logo. For iPhone 6s and earlier models: Press and hold both the Home button and the Top (or Side) button at the same time. Keep holding the buttons until you see the Apple logo.
It needs a new screen. Go with genuine Apple display. Cheaper tend to fail after a few months and error messages. I learnt the hard way sadly. Good luck.
When pressing all the buttons it forces an emergency call. That’s not a normal iPhone feature but it’s doing it. I hate tech of 2023 it’s pretty much dirt.