Photo: Todd Owyoung/NBC

THE TONIGHT SHOW STARRING JIMMY FALLON – Episode 1643 – Pictured: (l-r) Host Jimmy Fallon and musician Shawn Mendes during rehearsal on Friday, April 29, 2022 – (Photo by: Todd Owyoung/NBC)

Shawn Mendeswas on double duty forJimmy Fallonon Friday’s episode ofThe Tonight Show.

In exclusive photos shared with PEOPLE, the “Wonder” singer, 23, can be seen rehearsing with Fallon before the show, where he not only acted as musical guest ahead, but also as co-host.

The photos show the pair dressed casually as Mendes gears up to help the 47-year-old comedian with the night’s opening monologue before sitting behind the famousTonight Showdesk.

Ahead of airtime — during which they interviewedTake Me OutstarJesse Tyler Ferguson— Fallon and Mendes rehearsed in Studio 6B at 30 Rock in New York City, where they partook in a “Thank You Notes” segment and a game.

Todd Owyoung/NBC

THE TONIGHT SHOW STARRING JIMMY FALLON – Episode 1643 – Pictured: (l-r) Host Jimmy Fallon and musician Shawn Mendes during rehearsal on Friday, April 29, 2022 – (Photo by: Todd Owyoung/NBC)

The pair shared a tease of the co-hosting gig to their respectiveInstagram accountsearlier on Friday, in which they did their best to mimic each other word for word in a preview of the episode.

Mendes also took the stage to rehearse his newest single “When You’re Gone,” which he performed to close out the show after discussing hisWonderworld tour.

Later that night, Mendes took the stage for his hosting debut, with Fallon first introducing him “as you’ve never seen him before — with sleeves!”

Mendes then joined in on some monologue jokes with Fallon, kidding around about everything from how many alarms the average American sets to wake up in the morning to a British soccer player who missed a game after getting a cotton swab stuck in his ear.

Soon after, the co-hosts sat at the desk, with Mendes remarking, “Does anybody know how small this desk is?!” going on to call it “a children’s-sized desk.”

This is Shawn’s first time co-hosting the show, but he has previously appeared as musical guest eight times prior to Friday’s episode. After he told Fallon the number, Jimmy called the crooner “family” atThe Tonight Show.

THE TONIGHT SHOW STARRING JIMMY FALLON – Episode 1643 – Pictured: Musical guest Shawn Mendes rehearses on Friday, April 29, 2022 – (Photo by: Todd Owyoung/NBC)

With the co-hosting gig, the Grammy-nominated singer joins the likes of celebrities includingCardi BandDave Grohlwho have shared co-hosting duties with Fallon in the past.

The musician toldExtrashortly after the single dropped on April 1 that he wrote the song a month after he and Cabello, 25, broke up.

Never miss a story — sign up forPEOPLE’s free daily newsletterto stay up-to-date on the best of what PEOPLE has to offer, from juicy celebrity news to compelling human interest stories.

Mendes and Cabello were first spotted kissing in 2019, and dated for over two years before calling it quits in November 2021.

“A month later, you kind of start having all the memories of things that happened, and all the memories of so many amazing things … and I was writing about that,” Mendes toldExtraof the songwriting process for “When You’re Gone.”

Taped in front of a live studio audience,The Tonight Show Starring Jimmy Fallonairs at 11:35 p.m. ET/PT on NBC.

source: people.com