Update my iPhone
iPhone XR, iOS 12
iPhone XR, iOS 12
If you are on an older software, for example iOS 12 as stated in your description, then you must update your iPhone via a PC or Mac.
You can read how to update via computer here:
it tells you to connect it by cable to a computer and update it that way
Update my iPhone