Well, that's pretty well known. There are different tiers of mask. This article looks at the evidence for them:
https://www.cidrap.umn.edu/news-perspective/2020/04/commenta...
Some kinds of masks can stop much finer grained objects than droplets, e.g. gas masks, but the kinds of masks people are actually wearing are just regular cloth masks and there's no evidence they accomplish anything and plenty of evidence they don't: the article goes into this.
It's logical: your glasses fog up exactly because the hot air is exiting the mask and travelling outwards, that's why it's hitting the cold glass of your glasses.
But it's not sufficient to merely deflect a small amount of air from each breath in a different direction. That's not permanently trapping infected air; obviously it can't be because otherwise CO2 saturated air would build up inside your mask and suffocate you. The air has to be able to circulate. The mask is meant to let air through whilst blocking ... well, whilst blocking what? Virus particles? They're far too small. Water droplets that contain virus? Maybe, but only if you're actually spreading water droplets around and if you're asymptomatic then clearly you're not. Yet everyone is being forced to wear masks even if they're visibly healthy, on the basis that "you might be infected without realising it". The science behind this is garbled nonsense, being pushed on people because something must be done, this is something, therefore it must be done.
Stopping stuff travelling out is a different matter.