Yet Mexico barely had time to regroup before Brazil took the lead again.
Vinicius Jr lofted an inviting cross into the penalty area from wide on the left and his new Real Madrid team-mate Endrick timed his jump to perfection to glance in a header past Mexico goalkeeper Julio Gonzalez for 3-2.
The victory extended Brazil’s unbeaten record under new coach Dorival Junior, who oversaw 1-0 win over England at Wembley in March followed by a 3-3 draw with Spain.
Brazil face the United States in a friendly in Orlando on Wednesday in what will be their final game before they open their Copa America campaign against Costa Rica on June 24.
© Agence France-Presse
Photo: Twitter @brfootball