Jefferson Farfan hit the side netting with 17 minutes left as Ricardo Gareca's side began to run out of time to save their World Cup dream.
Peru made a quick start, putting the 1998 champions under pressure, and Lloris - on his 100th appearance for France - was nearly embarrassed when Yoshimar Yotun's lob from the half-way line dropped over the crossbar.
Peru threatened the Danes throughout their first encounter but were unable to make some key chances count.
A draw against Denmark in their final match is enough for Les Bleus to finish as group winners but the former France worldwide midfielder said his team had only one objective.
The 34-year-old striker Paolo Guerrero, who won a late reprieve to play in Russian Federation after his drugs ban was overturned, came on for the last 30 minutes against Denmark and Peru's all-time leading goalscorer looks likely to start. He is quick, powerful, confident with both feet and was arguably one of the stand-out performers of the World Cup's opening round of matches, despite being on the losing side. Paul Pogba then sent a shot wide of Pedro Gallese's goal. France have an arguably incorrect VAR decision to thank for their victory, after taking the lead through a contentious penalty kick.
Deschamps, a World Cup victor as a player in 1998, has an impressive selection of forwards to choose from and could give Olivier Giroud a start.
Competing in a first World Cup since 1982, Peru's dreams of reaching the last 16 are now over after a second defeat of the tournament.
Didier Deschamps-coached France, who switched to a 4-2-3-1 with the inclusion of striker Olivier Giroud and midfielder Blaise Matuidi, who played in an offensive role, saw the midfield coordinating well with the attack, which aided their fluid game.
- France are unbeaten in their last eight World Cup fixtures against CONMEBOL opposition (W4 D4).
Peru took time to get some good touches in the game. Les Bleus finished fourth and third at those tournaments, respectively.