Deniz Undav’s 94th-minute goal clinched a come-from-behind 2-1 victory for Germany against Ivory Coast in Group E to send them into the World Cup knockout stages.

Substitute Undav clinically dispatched the winner from Felix Nmecha’s pass having earlier cancelled out Ivory Coast captain Franck Kessie’s opener by volleying in a Nadiem Amiri cross.

Germany appeared to be heading for a shock defeat before the former Brighton striker’s 60th-minute introduction but his goals, which put him on nine in 11 games for his country, mean they join USA and Mexico in reaching the knockouts with a game to spare.

Ivory Coast, winners against Ecuador in their opener, were the better side in the first half, inspired by Liverpool target Yan Diomande, who helped set up Kessie’s goal with a burst of pace and low cross, but the defeat means they still have work to do to qualify.

“Germany put on a show in their opener as they delivered a thrashing of Curacao for the biggest win of the opening round.