David Robertson had his hands full trying to protect a one-run lead in the ninth inning against the heart of the Angels lineup — and that was before he had to get Albert Pujols out twice.

The new Yankees closer needed 26 pitches to get through the ninth inning of Saturday’s 4-3 win, finally striking out Howie Kendrick on a full-count fastball.

To add to the drama, with Mike Trout at first and one out, Robertson got Pujols to pop up into foul territory near the first base stands. Mark Teixeira appeared to be ready to make the play, but a fan also reached for the ball and Teixeira wasn’t able to haul it in.

“I would have expected to catch it,” Teixeira said. “It never got to my glove. His hands were kind of in front of my glove. … You don’t want to see that happen in the ninth inning with Albert Pujols up.”

Robertson said: “My initial thought was ‘You’ve got to be kidding me,’ Of all the people, I needed that out and against Albert Pujols, it would have been nice.”

The at-bat went on for another six pitches, with Trout swiping second on one, before Robertson got Pujols again, this time on a fly ball to shallow left. This time, no one got in Brett Gardner’s way.

It all ended fine when Robertson fanned Kendrick to end the game, leading to a moment of confusion from Robertson, who earned his first save since returning from the disabled list.

“It took me a second to realize that’s it, OK it’s over,” said Robertson, still adjusting to his role as Mariano Rivera’s successor. “I wasn’t sure what to do.”

His adjustment went through a slight hiccup at the start of the season when Robertson suffered a strained groin that landed him on the DL. Saturday was his first save opportunity since April 6.