I mean, this will depend on the country you are visiting and their hygiene standards. If you are in a region where it’s not deemed sanitary then it’s best not to drink tap water or water with ice cubes since your stomach isn’t accustomed to it leading to travelers diarrhea as a consequence (there’s pills you can take hardening the stool), if you are not sure or hesitant about drinking tap water abroad, just pay for bottled water instead.
This will be less likely to happen in a “developed” or “first world” country as they have stricter standards on hygiene or sanitation, some regions even have the water treated and filtered until it is deemed safe enough for people to drink, in that case you can drink tap water in those places but still exercise caution if you are doubtful, like consider water purification. Also, is tap water safe to drink in the US, UK or EU?

