Sprays and chemical treatments are the last line of defense to kill or deter a mildew as they are not as effective as good plant management, pruning and some tolerance of powdery mildews on plants
If you catch mildew early before it takes over the plant, homemade fungicides and store-bought sprays will keep mildew from spreading