Improperly dressed tourists are not welcome in St. Peter’s in Vatican City either. I saw the Swiss Guards turn away a man in shorts and a t-shirt. Luckily, the cruise ship had given us fair warning.
There is a difference between a holy place and the general public.
What would proper dress be for St. Peter’s?