You likely have gastro esophageal reflux
disease which is the official term. First identify the foods that make your heart
burn worse and avoid them. Then try a short course of antacids (talk to your doc about the types of meds).
If that fails you will need more workup from a gastroenterologist (stomach doctor).