A visitor tossed the hat into the air in front of Fiona's enclosure, where it got caught on a ceiling fan. The fan then launched the hat up and over the viewing windows and into Fiona’s habitat, the zoo said.

"The vet staff tried everything they could to help her after she ingested a hat that ended up in her habitat by accident last week," the zoo said. "Despite multiple attempts to move the hat out of her system, it was ultimately too much to overcome."

"The team performed necessary supportive care today in an attempt to save her, but it was not successful, and she did not recover," the statement continued.

The zoo asked supporters to keep everyone who tried to help Fiona in their thoughts and prayers.

The hippo became a viral sensation in January 2017 after she was born six weeks premature, weighing only 29 pounds.

Her birth followed the May 2016 death of Harambe, a 17-year-old male western lowland gorilla who was fatally shot at the Cincinnati Zoo after a 3-year-old boy climbed into his enclosure.

Fans followed Fiona's progress closely, and she became so popular that books were written about her. She also inspired a line of beer, clothing, and an ice cream flavor, according to the AP.

In one memorable viral moment, a couple got engaged in front of her exhibit as Fiona photobombed them from underwater.

Fiona's death was felt throughout Ohio. The NFL's Cincinnati Bengals simply posted on X: "Rest in peace, Fiona. The queen of the Queen City."

The Cincinnati Reds called her: "Forever an icon."

U.S. Sen. Bernie Moreno, R-Ohio, praised Fiona as "Ohio’s fighter."

"Born tiny, premature, and against every odd, she grew up and brought pure joy to millions of us," Moreno wrote Thursday on X. "From the day she first opened her eyes, she showed the world what resilience looks like."

"Thank you for the smiles, Fiona. Ohio will never forget you," he added. 

Chelsea Clinton said the hippo "captured the hearts of everyone lucky enough to meet her and know her story, including me."

"I will always treasure the art Fiona made for me and the smiles she gave me," she wrote.

Ohio Gov.-elect Amy Acton also lamented the loss. 

"So sad to hear about the loss of Fiona the Hippo," she wrote on X. "Fiona captured the hearts of millions and became one of Cincinnati’s most beloved icons. Her story brought joy, hope, and a little extra magic to our state. The whole [Cincinnati Zoo] community is in our thoughts."

"Very sad news," Sen. Rand Paul, R-Ky, wrote. "Thank you, Fiona, for being such a beloved presence. Our hearts are with her keepers and fans."

The Associated Press contributed to this report.