Jets wide receiver Adonai Mitchell runs for a touchdown during the...

Jets wide receiver Adonai Mitchell runs for a touchdown during the first half of an NFLl game against the Miami Dolphins in Miami Gardens, Fla., on Sunday. Credit: AP/Lynne Sladky

MIAMI GARDENS, Fla. — For the first time in his two seasons as coach of the Jets, Aaron Glenn walked off the field a winner against an AFC East opponent. And his team had to get through a whole lot of ugly in the early going to make it happen.

Geno Smith passed for 243 yards and a touchdown and Isaiah Davis had a 93-yard kickoff return to set up another TD as the Jets beat the Dolphins, 23-12, to end their losing streak in Miami at 10 games.

“We punched each other,” Glenn said. “But at the end of it, we were the ones that were standing, and that’s what you want. You want the results, and we got the results that we want.”

The first nine possessions of the game featured seven punts, a turnover (two others were narrowly avoided by replay reviews) and a field goal. From there, the Jets took control and kept it the rest of the way.

“It’s great to see us just stay with it, stick with it,” Smith said. “And then eventually we broke through late in the half.”

Andrew Beck had a 1-yard score off a direct snap for the Jets, who hadn’t won at Hard Rock Stadium since 2014, getting outscored 252-152 in those games.

Smith, a South Florida native who grew up just a few miles from where the Dolphins play, completed 14 of 22 passes as the Jets (4-8) recorded back-to-back wins for the first time this season. They are 1-9 in division games under Glenn.

“I don’t care who the team is,” he said. “As long as we stack wins, that’s all I care about . . . We got a dub. That’s what I’m looking for.”

Kyle McCord finished 29-for-40 for 218 yards, a touchdown and two interceptions for the Dolphins (1-10), who beat the Jets earlier this season.

McCord’s late scoring throw to Greg Dulcich was Miami’s first touchdown in 26 possessions spanning three games.

“It’s frustrating. I hate losing,” McCord said. “I’ve never been a part of a losing team, and it’s tough. But at the same time, every single week you come in on Monday after the game and there’s still energy. There’s still juice in the building. And I think that’s because we know what we’re building.”

Jason Sanders kicked three field goals and Minkah Fitzpatrick intercepted a pass early in the fourth quarter. Both are former Dolphins.

Miami was 1-for-13 on third downs, many of those third-and-longs set up by penalties.

“The self-inflicted things today were the story of the game, without taking anything away from the Jets,” Dolphins coach Jeff Hafley said. “It’s not good enough. We can’t score points when we do that.”

Smith threw a 54-yard touchdown pass to Adonai Mitchell midway through the second quarter to put the Jets up 10-0.

After a Dolphins field goal, Davis ran back the kickoff to the Miami 5. That set up Beck’s score, and the Jets were up 17-3 at the break.

“No one flinched,” Glenn said.

The Jets technically won a “road” game against the Dolphins in 2015, beating their AFC East rivals, 27-14, at Wembley Stadium in London. But every trip to Miami Gardens since 2014 wound up as a Jets loss — until Sunday.

The winning quarterback for the Jets in that 2014 game? That would be Smith.

Subscribe

Unlimited Digital AccessOnly 25¢for 6 months

SUBSCRIBESALE ENDS SOON | CANCEL ANYTIME