In some cases, doctors may prescribe medications to help reduce acid production or soothe the esophagus.