Update my iPhone
iPhone XR, iOS 12
iPhone XR, iOS 12
it tells you to connect it by cable to a computer and update it that way
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:
Update my iPhone