Although Gaviscon® can be taken anytime you have acid reflux or heartburn, it’s best to avoid taking Gaviscon® before a meal. Since it forms a foam barrier that sits on top of stomach acid, the food passing through the esophagus (throat) into the stomach can disrupt this barrier and compromise its effectiveness.