Gaviscon syrup is used to treat heartburn (acid reflux) and indigestion. The medicine works by forming a protective layer in stomach. Gaviscon also contains an antacid that neutralises excess stomach acid and reduces pain and discomfort.