However the goal was ruled out after the three Video Assistant Referees reviewed it and found out a Portuguese player was in an offside position.
The result left Mexico second in Group A and Portugal third following Russia's 2-0 victory over New Zealand on Saturday.
The result leaves both sides tied for second place in Group A, behind hosts Russian Federation who top the group after beating New Zealand 2-0 on Saturday in St. Petersburg.
And such was the impact of the change that his compatriot Fonte admitted Ronaldo's new hairdo took a few of his Portugal teammates aback when he joined up with Fernando Santos' squad in Russian Federation ahead of the Confederations Cup.More news: List of Republican congressmen found with baseball practice shoo
Coach Fernando Santos and some of Ronaldo's teammates are confident the star forward won't be affected by the buzz created by a report that said he wants to leave the Spanish club because of allegations that he defrauded the country's tax authorities.
The assistants duly looked it over, and awarded what looked to be a correct offside decision against Portugal, disallowing the goal.
"We know we didn't play well", he said.
Portugal had the ball in the net early on after a Cristiano Ronaldo volley crashed off the crossbar and eventually reach Pepe to score. "We nearly had the game won but we suffered in the final minutes".
But with the 90 minutes up, Mexican defender Moreno rose highest from the final corner of the game to head in the equaliser. "There is no reason to be concerned, we have to think about the next match".
Cedric saved well from Cedric and tipped a deflection from defender Carlos Salcedo over the bar before Portugal finally took a deserved lead. It ended; Portugal 2-2 Mexico.