Despite eight of the 11 players from the Euro 2024 lineup starting, Spain failed to score.
Sommer made 94 appearances for Switzerland.
The former Bayern Munich and Liverpool player made his international debut in March 2010 aged 18.
While Djokovic shadow-kicked the ball, his Australian opponent Alexei Popyrin took on the role of goalkeeper, shaping to make a save.
England's quest for a first major tournament win in 58 years remained alive after another late fightback before beating Switzerland5-3 on penalties to book their place in the Euro 2024 semi-finals.
Euro 2024 Quarterfinal, England vs Switzerland Highlights: England reached the semi-finals of Euro 2024 on Saturday after beating Switzerland 5-3 on penalties following a 1-1 draw in the last eight.
England vs Switzerland Live Streaming Euro 2024 Quarter Final Live Telecast: When And Where To Watch
England face a high-on-confidence Switzerland in the Euro 2024 quarters, a side that beat defending champions Italy in the Round of 16.
Switzerland have never reached the last four of a major international tournament but have shown that they can battle with the big boys ahead of their Euro 2024 clash with England on Saturday.
The quarter-final stage of Euro 2024 begins on Friday, July 5, as Spain take on hosts Germany in arguably the game of the tournament.
Italy are once again staring into the footballing abyss after Saturday's humbling exit from Euro 2024 at the hands of Switzerland, the defence of their continental title ending in embarrassing fashion.
Switzerland vs Italy Live Streaming Euro 2024 Round Of 16 Live Telecast: When And Where To Watch: The Euro 2024 knockout stage gets underway, as Switzerland take on Italy.
Coach Luciano Spalletti said his team deserved to progress but undermined those words by criticising players for a timid performance in their final group game.
The Euro 2024 Round of 16 kicks off with Switzerland vs Italy on June 29. Hosts Germany face Denmark later that day.
France vs Belgium and Germany vs Denmark are the headline clashes of the UEFA Euro 2024 Round of 16 stage.
Switzerland coach Murat Yakin praised his side's performance despite conceding a last-gasp Niclas Fuellkrug equaliser in Sunday's 1-1 draw with Euro 2024 hosts Germany in Frankfurt.
The result means Switzerland, rather than Germany, face a tougher last 16 assignment, setting up a potential meeting with holders Italy or 2018 World Cup finalists Croatia.
The top two teams from each of the six groups will qualify to the next round with the four of the six best placed teams that finish third will also be guaranteed qualification.