I always feel so sorry for the men, including the priest, when those scantily-clad teenagers show up at Mass.
A dress code should be posted and adhered to. If you’re not dressed properly for Church or Mass, then you can’t go in. Go home and get dressed. Eventually, the idea will catch on and people will show up for Mass properly dressed.