With regard to pregnancy, heartburn appears in the first trimester of it. This is due to a sharp increase in progesterone level, which relaxes all smooth muscles, including the sphincter of the oesophagus. This causes food from the stomach to flow back into the oesophagus. This symptom usually goes away by 13-14 weeks of pregnancy. In later gestations, heartburn can occur because of the displacement of internal organs due to compression by the uterus. This condition goes away after the birth of the baby.
So how to help with heartburn during pregnancy? Use all the recommendations described above. You can also use foods that help heartburn as a quick remedy: milk, soda, seeds, drink alkaline water, bananas, pears, and peaches.