Sorry, I see that you posted under iPhone xR. I missed it.
If you go to Settings > General > Software Update, is there an available update?
If not, you can go to Settings > General > Erase all content and settings to reinstall the latest iOS version and restore your phone from a backup or set up as new.