I had mildew for awhile because I ran over something on a highway and it put a hole underneath the passenger side, so anytime it rained I'd get water ingress in there. I bought two types of flex seal and sealed it, no mold problems since.
But sometimes when I spill water or want the car to be extremely fresh, I put a damprid bag in there: