Welcome to icliniq.com.
Viscous fluid coming out of ears indicates a middle ear infection. It has to be attended to immediately to avoid damage to the ear.
I request you to meet an ENT specialist at the earliest to prevent further damage.
In the meantime, you can take tablet Levocetirizine 10 mg twice a day to reduce the secretions and the inflammation.
For further queries consult an ENT otolaryngologist online --> https://www.icliniq.com/ask-a-doctor-online/ENT-Otolaryngologist