Hi there and welcome
The only way will result in the phone being reset so you will lose any data on it not backed up.
But to reset it, connect it to the computer, open iTunes and hold the Volume Down and power buttons until you see iTunes indicate the phone is in recovery mode.
Then you can choose to do the factory recovery
Let me know please how you go.