Hard Reset iPhone XR
This article shows how to hard reset and iPhone XR and it works for most iPhones, just follow the instructions below:
1) Tap Settings
2) Scroll down to general
3) Scroll down to reset
4) Tap erase all content and settings
5) Follow prompts
Please note that this will erase everything on your phone, I recommend to back it up before doing that.