Heartburn and acid reflux can often be prevented by making lifestyle changes and avoiding alcohol and spicy or fatty foods, according to the NHS website