Only hydrofluoric acid can dissolve glass due to its ability to react with the silicon dioxide in glass and form a volatile gas. Other acids, such as sulfuric acid and hydrochloric acid, do not react with glass and are unable to dissolve it. However, all acids can cause etching or damage to glass surfaces.