Mets center fielder Johneshwy Fargas made a leaping snow-cone catch to rob Jesús Aguilar of an extra-base hit to start the ninth. Brian Anderson singled with two outs, and Cooper homered on a 90-mph cutter down the middle.
The Mets’ Dominic Smith tied the game at 1 with a two-out, RBI single in the eighth. Richard Bleier thought he had Smith struck out with the previous pitch and took several steps toward the dugout assuming the inning was over.
“Frustrating,” Miami manager Don Mattingly said. “He makes a great pitch. Thankfully it didn’t end up changing the game.”
Anderson scored the Marlins’ first run from third on a sacrifice fly in the seventh when catcher Tomás Nido dropped the ball making the tag.
Miami’s Pablo López allowed four hits in seven scoreless innings and struck out eight. He knew the team needed for him to go deep into the game.
“Today more than usual, that was my main focus — I wanted to be efficient and effective early, and get myself in good counts,” López said.
López has only one victory, but has held opponents to one run or less in six of his 10 starts and has an ERA of 2.73.
Yimi García (3-2) pitched around a leadoff walk to work a scoreless ninth. The injury-plagued Mets totaled five hits and have 13 in 21 innings in the series.
Cooper totaled three hits, and his average has risen to .242 from .177 on May 2. He homered for the third game in a row, increasing his season total to five.
“I was pretty frustrated with myself early in the year,” he said. “You ride the lows and ride the highs, and try to stay as even keel as possible.”
The walk-off homer was Cooper’s first, and the first for the Marlins since Harold Ramirez hit one August 29, 2019 against Cincinnati.
Mets: INF Jake Hager was designated for assignment less than 24 hours after getting his first major league hit. RHP Jordan Yamamoto was recalled from Triple-A Syracuse, and LHP Stephen Tarpley was reinstated from the minor league injured list.
Marlins: LHP Shawn Morimando was selected from Triple-A Jacksonville.
Mets: OF Brandon Nimmo (finger nerve), who hasn’t played since May 2 and had a setback in his rehabilitation, said he expects to start swinging a bat soon.
Marlins: RHP Jordan Holloway (right groin strain) went on the 10-day injured list. RHP Elieser Hernandez (biceps) was transferred to the 60-day injured list but is on track to be activated after two more rehab outings.
Marlins RHP Cody Poteet (1-0, 1.80) is scheduled to make his third career start in the series finale Sunday. The Mets’ starter hadn’t been announced.
More AP MLB: https://apnews.com/hub/MLB and https://twitter.com/AP_Sports
Follow Steven Wine on Twitter: https://twitter.com/Steve_Wine