Iphone needs to cool down before you can use it
Hello Apple community, I have a problem that I don't understand and I don't know what to do. I was at an aquapark the other day and I took my phone in the water. And after a few hours it gave me the message "iPhone needs to cool down before you can use it" the phone is cold and this message doesn't go away and I can't use the phone in any way. What could I do or what could be wrong with it?
iPhone 13, iOS 18