Magic mouthwash is a prescription mixture typically used to treat mouth sores caused by cancer treatment. However, a modified homemade version can provide pain relief for tongue and other mouth ulcers.