Switch it off immediately
This is the most important step and the only one where you really need to hurry. As long as power is flowing while moisture sits on the logic board, short circuits form between components that should never be connected.
A device that was switched off straight away has much better chances than one that kept running for another hour. Even if it seems to work normally right now: switch it off.
If your device cannot be switched off the normal way because the touchscreen no longer responds, use the force restart for your model and then leave it off.
