Could it be hiatus hernia that is causing gerd?

Yes. A hiatal hernia can be a cause of food reflux into the esophagus causing heartburn or esophageal injury or esophagitis. Other people with reflux can be from a weakness in the muscle at the junction of the stomach and esophagus without hiatal hernia.