By EGD, UGI, or CT
Usually hiatal hernias cause some symptoms that prompt an EGD
) which visualizes the hernia
An upper GI study (UGI) involves x-rays taken as you drink contrast. Or sometimes they are picked up incidentally on a CT performed for a different reason. If you don't have symptoms related to the hernia, then surgery may not be necessary.