Acid-based cleaning solutions can help tackle glasses that are foggy due to hard water buildup, but etched glasses are likely beyond repair. Etching creates tiny scratches that cause glasses to look foggy and can happen in any dishwasher, impacting inexpensive and quality glassware.
Etched glassware most often results from washing in soft water and gets even worse with too much dish detergent. Though etching can’t be reversed, there are some ways to help prevent it from occurring.