Heaven help him!

Pope Francis ended up on the elevator ride from hell Sunday when his lift got stuck for nearly a half-hour on the way up for his weekly balcony address in St. Peter’s Square.

But The Big Guy Upstairs was looking out for the 82-year-old pontiff, who was eventually rescued by Vatican City firefighters.

Il Papa looked slightly weary but was still smiling as he told the throng of faithful gathered for his noon speech that an electrical glitch caused a drop in voltage that stalled his tiny private lift at for 25 minutes.

“Dear brothers and sisters, good morning. First of all, I must apologize for the delay, but there was an incident — I was locked in the elevator for 25 minutes,’’ Francis said from the window of the papal apartment, according to the Vatican News.

“There was a drop in voltage, and the elevator stopped. Thank God the fire brigade came — thank you so much! And after 25 minutes of work, they managed to get it to go. Let’s hear it for the fire brigade!”

The crowd applauded the tiny Italian city-state’s fire department, which consists of about 30 firefighters.

The pope — with nary a mark on his white robes — continued with his address, which included the announcement of the appointment of 10 cardinals.

Francis had been riding in what’s known as the “little elevator of Pope Sixtus’’ when he got trapped, according to London’s Telegraph. The lift connects a courtyard named after the 16th-century pope to the Vatican’s lavish papal apartment.

Francis doesn’t live in the opulent quarters; he refused to take them over after ascending to the papacy in 2013, instead staying true to his humble persona and choosing the Vatican’s considerably more low-key Santa Marta residence.

But in keeping with tradition, the pope still delivers his weekly address to the masses from the papal apartment every Sunday, riding the elevator up to the spacious pad so he can preach to the crowd from its main window.

The pope is known as punctual, so when he didn’t show up at the stroke of noon to speak, the crowd was nervous, reports said. His address ended up being about 10 minutes late.

The Vatican News Agency tweeted about the glitch, writing, #PopeFrancis says “sorry I’m late” after he appears for #Angelus later than usual due to a problem with an elevator.”

With Post Wires