Disconnect power first
Remove the device from the liquid and disconnect attached chargers or accessories. If it is safe, switch it off. Don't connect power to test whether it survived.
Avoid heat and home experiments
Do not use a hairdryer or put the device in rice. Heating, charging or repeatedly turning it on can worsen internal damage after exposure.
Arrange an assessment
Different liquids can cause different levels of corrosion. Some phones may be repairable, while others cannot be restored. No one can promise data recovery or a working device without evaluation.
Information is general guidance, not a confirmed diagnosis. Model, parts and repair suitability need assessment.