The most basic cause of heartburn is the reflux of acid stomach contents into the esophagus. Environment of the stomach, consisting of hydrochloric acid is quite aggressive, but the mucosa of the stomach protected from it, but the lining of the esophagus more sensitive.
https://kozweek.com/heartburn-what-not-to-do-in-any-case/6268/
HEARTBURN WHAT NOT TO DO IN ANY CASE