July 8, 2020 | 11:04am | Updated July 8, 2020 | 11:14am

As Yoenis Cespedes prepares to play his first game in two years, the Mets are turning back to an old experiment.

The 34-year-old, who’s only been an outfielder or a DH during his MLB career, was working out at first base Wednesday morning at Citi Field, taking ground balls and fielding throws.

Cespedes hasn’t played since July 20, 2018 after undergoing surgery on both of his heels. Then, in May of 2019, Cespedes fractured his right ankle stepping into a hole on his Port St. Lucie ranch during an incident with a wild boar, as The Post exclusively reported in January.

Cespedes first stopped playing in May of 2018 and returned for just one game against the Yankees — in which he hit a solo home run — before his season was over. While preparing to return, Cespedes told the Mets he was willing to play first base. He played first base in a minor-league game before his one-game return.

This was before the emergence of Pete Alonso, who won NL Rookie of the Year in 2019 by setting a rookie record with 53 home runs.

With the designated hitter in place in the National League for the shortened 60-game season, that is the prime avenue for the Mets to keep Cespedes fresh. If Cespedes can handle first base he could fill-in when Alonso gets a day off, though that role is usually reserved for lefty-swinging Dom Smith.