As a rule of thumb, make sure your holiday outfits keep you covered from shoulders to at least the knee to prevent any issues from arising should you cause offence to anyone.
At the beach or by the pool, it’s fine to wear your (suitable) swimwear, so long as you’re appropriately dressed once again after leaving the pool or beach vicinity.
We have a full guide to Dubai’s dress code available here, and here are some of the most common mistakes tourists (and residents) make when it comes to Dubai’s dress code that are easily avoidable.