Bv or yeast infection during pregnancy

ju

How can I treat a yeast infection or BV while pregnant? I’m not sure which one I have but I’m really scared of this causing a miscarriage has anyone else had these while pregnant?