Mexico just need a draw to qualify but will be desperate for a moral boosting third win on the bounce.
The Swedish side were worthy of their win and took the lead at the start of the second half via Ludwig Augustinsson's volley, then Andreas Granqvist added a second via the penalty spot and Enrique Alvarez scored an own goal.
Join the chat and post comments / questions using the hashtag #AskESPNFC.
With the goal differential advantage, Sweden won the group and will face Group E runner-up Switzerland on Tuesday.
Mexico will aim to cement their place at the top of Group F while Sweden will battle for survival in what could be a tricky World Cup clash at the Ekaterinburg Arena here on Wednesday.
The South Koreans, after two defeats, would have to beat Germany by more than two goals while hoping Sweden lose to Mexico to have any chance of advancing. The main question is whether coach Osorio will play the team's usual attacking game or if he will decide to sit back and wait for the Swedes to push forward, given they likely need to win.
The Scandinavians were awarded a penalty after Hector Moreno fouled Marcus Bergin in the box.More news: Germany boss opens up on team performance
More news: Utah’s Rudy Gobert wins NBA Defensive Player of the Year
More news: Germany Have Been Knocked Out Of The 2018 World Cup
Mexico have been one of the biggest attractions of this World Cup.
Germany was shocked in its opening match in Russian Federation by losing to Mexico, and the squad needed a goal in stoppage time from Toni Kross to pull out a 2-1 victory over Sweden.
Andersson said that set-pieces could play an important role for Sweden on Wednesday.
"We want the players to recover mentally and physically (from this match)".
"A few days ago we lost in the last minute and we were very disappointed, and now we come back and beat Mexico", Augustinsson said.
Everyone was waiting for Germany to score another late World Cup-saving goal.
Plastic beer cups rained down, before Mexico defender Edson Alvarez compounded a miserable evening with a 74th-minute own goal when he miskicked past Ochoa.
With the game fading into injury time and Sweden certain of victory, Mexican fans began to think what was before the game unthinkable - possible elimination. Costly mistakes enlarged the score, and at the 90th minute, Sweden walked away with a 3-0 victory. "For many who are aware of Mexico's history they say this is perhaps the best generation of Mexican footballers".