People who experience heartburn should sleep on their left side, as right-side sleeping relaxes connecting muscles between the stomach and the esophagus. When these muscles contract, they help control the acid reflux process.
Source: Medical News Today