When I was a little boy, my church (Southern Baptist) used to have a rack of jackets and ties and full-length skirts near the main entrance. If a man came in without a jacket or tie, or a woman came in wearing pants or a miniskirt, an usher would discreetly direct them to the rack.
Obviously, times have changed.