Mayorga and Edson Álvarez were given the opportunity by Juan Carlos Osorio to be supporting practice squad players with the senior national team that participated at the 2017 Confederations Cup. At the conclusion of the tournament, he got his first call up to the senior national side in the preliminary list for the subsequent Gold Cup, all before his Liga MX debut. He eventually made it to the official 23-man list.