Whilst I found that during flight training I was not treated differently, it's the over all experience that's different. Guys would be encouraged to learn more about the career whereas gals not so much.
I was fortunately to learn with other females, the CFI was one too so the concept of women flying (1980s) was becoming far more common place.
When growing up, I wanted to be an astronaut but it was pretty obvious that there were no women pilots or astronauts (and the military definitely had no female pilots). Therefore, there was no encouragement. Even the school system was against the idea. My cooking teacher said that women couldn't be pilots because of biological/physiological reasons, ie, our bodies couldn't tolerate the G forces.
When I started working in the Kimberley (Australia), my colleagues were great. In fact, consistently throughout my career, my colleagues have never treated me differently. Some pax would balk at having a female pilot but I found a good workaround that sorted that issue.
When I flew turboprops I was occasionally mistaken for an FA. (Bandierante/Twin Otter). Trust me. After loading several hundred kg of freight in humid and hot conditions, I didn't look like an FA! More amusing than any thing else. I do know of one female FO who had a letter written against her claiming all she did was talk to the pilot...
Again, the experience has been similar in Europe. Colleagues are great. Some of the office staff weren't so accepting initially but now they're ok.
Some nationalities have a different cultural view point and this is obvious in various FBOs. Obviously, places like Saudi, we're very much a 2nd class citizen. Just play the game, survive and get out in one piece.
Our predecessors in the ATA in WW2 definitely showed that women could do it but unfortunately, society wasn't ready for equal opportunity. So women had to wait several more decades before we were accepted as pilots en masse.
Best way to get on in a so called "male dominated" although I prefer "target rich"

environment is to be professional. Nothing more.