keeping a flat stomach and healthy gut is the key to preventing heartburn
there are certain foods that can trigger it
it is NOT okay to have heartburn daily, that is a huge red flag of a serious problem in your gut and your diet. try a low FODMAP diet plan and see if that helps and fasting