Starting Friday, Disney World in Florida will require guests older than 2 to wear masks in indoor spaces, reversing its policy that allowed fully vaccinated guests to go without them.

The change was announced after the Centers for Disease Control and Prevention on Tuesday recommended that Americans, regardless of vaccination status, wear face masks in indoor public spaces in areas with high rates of transmission.

It also came as Orange County Mayor Jerry L. Demings on Wednesday signed an executive order declaring a state of local emergency as cases rose in the county, which is home to Disney World.

“I urge residents and visitors — vaccinated and unvaccinated — to wear a mask while indoors and to follow updated C.D.C. guidelines,” Mr. Demings wrote on Twitter.

Over the past two weeks, coronavirus infections in Orange County have increased by 184 percent, and hospitalizations have risen by 116 percent, according to New York Times data.

Disney World’s new policy could draw some backlash from Gov. Ron DeSantis, who after the C.D.C.’s announcement said it was up to parents to decide whether their children should wear masks.

On Wednesday, Gov. DeSantis doubled down on his comments, saying that making children wear masks is “bad policy.”

“Parents are best equipped to decide whether they want their kids to wear a mask in school,” the governor wrote on Twitter. “Neither bureaucrats in Washington nor local authorities should be able to override the decision of the parents.”

Disney World was not the only company that reversed course in response to the C.D.C.’s advice. Apple also said it will start requiring employees and customers to wear masks regardless of their vaccination status in certain stores across the country, in accordance with the new C.D.C. guidelines.