iPhone XR

^^^ I would take it to an apple store and explain the situation. I’ve had several iPhones over the years and never had that happen.

Is it out of memory?
Is it currently running the latest software revision 15.6?
Turn it off and back on.

are you positive it’s offline when you put it back in your pocket?