Not that I think they should visit a mosque, but how is this any different than literally every cathedral in Europe? Women are required to dress modestly or they will be denied entrance or asked to leave. Notre Dame in Paris and all that I visited in Rome and elsewhere even offer shawls and wraps to cover shoulders and legs.
“but how is this any different than literally every cathedral in Europe”
I was once prevented from entering a church in Venice because I was wearing shorts.