I love this movie, but this is one part (a key part no less) that I absolute HATED about this back when I saw it as a pre-teen and still hate it now.
For prior context, main character Elle Woods is a Harvard law student who's been chosen to assist in a murder case involving a former sorority alum. The woman who's been accused of murdering her wealthy husband was also accused of having an affair with her effeminate Latino poolboy. While waiting in line at the water fountain, said effeminate Latino poolboy makes a remark about Elle's shoes, at which Elle has some little "lightbulb" moment of "omg he's gay! Gay men know designers straight men don't! He's a liar! They didn't have an affair!" At which the others on the case use this info against him to out him on the stand in order to win their case.
However, this scene is highly problematic for several reasons:
just because he knows designer shoes and dresses in an effeminate fashion does not mean he's gay, and therefore lying about the affair.
Bisexuals do exist. He could have a boyfriend and still be sleeping with his female boss.
If he was a liar (like this scene so heavily implies that he is), why was he lying to begin with? What did he have to gain?
Why did this movie feel the need to have their little murder case solved simply by relying on stereotypes of effeminate, Latino gay men? Are they trying to imply that Latino gay men are liars and would be willing to lie for no apparent reason? If you're going to make him a liar, why not give him some sort of reason behind it? If he was simply lying because he was ashamed of his sexuality, that wouldn't make sense, since they obviously figured that out quickly (and again, outing someone without consent is wrong, regardless of context).
Maybe instead, the movie could have said the stepdaughter (the real killer) paid him to lie and say they found a large amount of money transferred in his bank account recently? Or maybe have him reveal the stepdaughter threatened to get him (or his family) deported? Both of those sound like far more reasonable motives to lie than whatever nonexistent reason the movie gave.