The best option would be: 1. Stop using your device; 2. Do not charge it. It will dry out eventually, but charging it will damage your port.
Turn your phone off and clean it. Leave it for 24–48 hours in a dry environment. Ensure your charger is also dry and free from moisture.
Do this carefully, but you can also use a hairdryer on low heat to dry the ports—it is better to do so on low heat for a longer period, as higher heat may damage the device.
*I see you asking this. There is no special setting for clearing the port "like iPhone," though that is normally for speakers, not the charging port. The phone will be fine and does not need a specific setting enabled if you follow my advice above.