Seeing spot and feeling like could pass out after shower when pregnant

I’m 36 weeks pregnant checked bp and sugar they were fine just don’t know what could have caused me to see spots and feel like I’m gonna pass out all of a sudden anyone know why?