Yankees closer Aroldis Chapman went into Joe Girardi’s office at Yankee Stadium on Saturday and apologized for “liking” an Instagram post that called for the manager to be fired and also called him “a complete imbecile,” a team official told Newsday.

According to the official, Chapman was looking through social media posts during the Yankees’ flight home from Cleveland on Friday night after their disappointing 13-inning Division Series loss that featured several questionable decisions by Girardi.

Chapman told Girardi he wasn’t aware that he had clicked that he “liked” the posting, which was in English and said, “Let’s hope Joe’s contract is not renewed after the season. He’s a complete imbecile.”

Chapman, who is from Cuba and uses a translator for media interviews, told Girardi he “unliked” the post as soon as he realized his “liking” it had gone around the Internet in the early-morning hours of Saturday.

Girardi, who often says he is not on social media, was unaware of the incident until Chapman asked to speak with him, the official said.

advertisement | advertise on newsday

According to the official, Chapman told Girardi “that’s not the type of person or player or teammate he is. He was apologetic.”

Girardi does not have a contract for 2018 but is expected to return. Chapman, who threw two scoreless innings on Friday, is signed through 2021 for $86 million. He has an opt-out clause after the 2019 season.

Chapman criticized Cubs managerJoe Maddon after last year’s World Series for overusing him. But both men said they spoke in the offseason and had no lingering issues.