Hernández was included in the El Salvador squad for the 2019 Gold Cup. He appeared in all three group stage matches as El Salvador failed to advance to the next round.