sir_isOanswered grow question 3 years ago Health is the most important factor in preventing fungal, mildew problems.
Of course, environment affects that health (consistently too much moisture, not enough light, too much light causing metabolic stress, cycles of too wet, too dry, nutrient imbalances etc).
So basically...uh try make it easier for the plant environmentally, and improve its overall health.