Antibiotics and yeast infection

So I get a yeast infection almost every time I take antibiotics. My dentist gave me a prescription for amoxicillin for 7 days and by day 3 I have a yeast infection. It’s super frustrating not only because of the YI but I never finish my antibiotics for my other illnesses.

Anyone have tips on how to prevent this? I always eat at least a cup of yogurt every day while taking the antibiotics but I’ll still get a YI :/