The very first thing you have to do when your phone gets wet you have to turn it off to secure your mobile from any hardware damage dry it with a towel to make sure there is no moisture left on the surface and then use clear my speaker online app to eject all the water from your phone to prevent any damage to the speaker of your phones.
Another thing you can do is to put your mobile phone in a bowl full of rice overnight so the rice will soak all the water from your phone. But it’s not recommended as the rice can get into your charging port and damage the charging jack. If these things don’t work the best practice is to take it to a repair shop.