Hearts are two games away from making the group stages of European football for the second season in succession after a famous victory at Tynecastle.
The tie looked lost in the early going after Ísak Þorvaldsson opened the scoring for the Norwegians, putting them 3-1 up on aggregate and giving the hosts a mountain to climb.
They made up some of that ground just eight minutes later when Lawrence Shankland latched on to a through ball and dinked his finish over the goalkeeper.
Hearts kept at it in a game which was played at 100 miles per hour and they got their reward five minutes into the second half when Cammy Devlin netted his first.
The match finally settled for the final 30 minutes as Hearts got a little deep, but it ended spectacularly when the roof lifted off Tynecastle following Devlin’s late winner.
Here’s how the Hearts players rated...

9. FC - Lawrence Shankland - 9
Scored one, got an assist for the winner and played a part in the second. Excellent hold up play and movement. He tired a little in the last 20, otherwise he would have been on to a near-perfect performance. Photo: Paul Devlin - SNS Group

10. FC - Liam Boyce - 8
Hearts missed his reading of the game and touch after he went off. Showed great composure in the build up to the second goal. Photo: Paul Devlin - SNS Group

11. ML - Alex Cochrane - 8
A lot of strong running. When he moved to the centre of the park he helped shore it up after Rosenborg often drove through at will. Also did well to keep his cool after picking up an early booking and becoming seemingly impervious to winning fouls in the eyes of the official. Photo: Mark Scates - SNS Group

12. Substitutes
Barrie McKay - 7. Alan Forrest - 5. Kyosuke Tagawa - 5. Toby Sibbick - n/a. Andy Halliday - n/a Photo: Paul Devlin - SNS Group

