The hippo, named Fiona, became a global sensation after being born prematurely at the Cincinnati Zoo in 2017.

"It is with extreme sadness that we share with you the devastating news that Fiona did not make it after multiple attempts from our amazing vets and keeper team to help her through what ended up being a medical emergency," Cincinnati Zoo said in a statement.

The zoo said on Monday that the hippo was undergoing care around the clock after swallowing the hat more than a week ago.

Before she died, veterinarians had been keeping Fiona hydrated, giving her treats and monitoring her every move, the zoo said.

They even borrowed a vibration plate from a horse farm, encouraging her to stand on it several times a day in the hopes that the shaking would help move things along through her digestive tract.

She swallowed the hat about 11 days ago after a zoo visitor tossed it in the air.

A ceiling fan caught and catapulted the hat through a small opening above the area's viewing windows.

It was an accident, said zoo spokeswoman Michelle Curley.

Before she died, Mike Wenninger, the zoo's director of animal health, said veterinarians had sedated her twice to evaluate her condition.

An ultrasound on Tuesday showed some bunching of her intestines, indicating she was still trying to pass the obstruction, Mr Wenninger said.

They also conducted a colonoscopy using a nine-foot scope, but were unable to detect anything, he said.

"Her care team even offered her a sniff of coffee, a scent she has always liked," Ms Curley said in the latest update on the hippo's condition.

"And they were happy to see her respond."

Specialists told the zoo that surgery was not an option for full-grown hippos, the zoo said.

Fiona survived her first health scare when she was born six weeks premature.

She weighed just 13.2kg, which was less than the lowest recorded birth weight for her species at that time.

Fiona was unable to nurse, so a zoo staffer hand-milked her mother.

The zoo recorded her progress with photos and videos, while fans worldwide followed her progress online.

Her survival brought an uplifting turn for the Cincinnati Zoo after months of backlash over the shooting of Harambe, the gorilla who became a pop culture phenomenon after he was killed because a child got into his enclosure.

Zoos around the world have warned for years about the dangers posed by objects that are tossed or blown into animal habitats.

Two years ago, a rare antelope choked to death after eating the plastic lid from a squeezable fruit pouch at a zoo in Tennessee.

A polar bear at a German zoo died in 2014 after swallowing a jacket dropped into his enclosure by a visitor.

Veterinarians say a common reason for pet owners to make emergency visits is after their dogs have swallowed balls, toys and strings.