If the AC smells like mildew after heavy rain, moisture may be entering ducts or the drain system
https://expertairconditioningservice731.theglensecret.com/how-to-tell-if-your-air-conditioner-needs-one-more-repair-or-a-full-replacement
If the AC smells like mildew after heavy rain, moisture may be entering ducts or the drain system. Inspect for obvious water intrusion and have the system cleaned.