Here is the mosque dress code when visiting the Jumeirah Mosque in Dubai or the Grand Mosque in Abu Dhabi:
If you are visiting a mosque especially the Grand Mosque in Abu Dhabi, you need to have a more conservative dress code. For men and women, your legs and arms need to be covered – no shorts or skirts above the ankle. Additionally, your clothes should not be tight fitting – this is not the place for yoga pants! Try and ensure the fabric of your clothes is opaque as well, as see-through garments are inappropriate in a religious environment. Female visitors to the mosque will be asked to cover their hair; however, a headscarf will be provided to them upon entry. As a side note, you will be asked to remove your shoes.