US President Donald Trump was admitted to a hospital for a few days as a precautionary measure after he tested positive for COVID19, a White House spokeswoman said Friday.

“President Trump remains in good spirts, has mild symptoms and has been working throughout the day,” Kayleigh McEnany said in a statement. “Out of an abundance of caution, and at the recommendation of his physician and medical experts, the president will be working from the presidential offices at Walter Reed for the next few days.”

Trump said in a video message that he thinks he is doing very well.

"But we're going to make sure that things work out," he said, and added that first lady Melania Trump, who also tested positive, is in good condition.

White House Communications Director Alyssa Farah said Trump is not expected to delegate powers to Vice President Mike Pence.

Trump, who announced his diagnosis early Friday, is among patients with the highest risk factors for suffering dire health consequences from the virus. He is considered medically obese and is 74 years of age.

The announcement that the president contracted the deadly virus came hours after Hope Hicks, one of Trump's closest aides who traveled with him as recently as Wednesday, tested positive for the virus.

Trump has spent much of the year downplaying the severity of the virus, and has repeatedly appeared in public without a mask.

Many of the US’ first family and supporters declined to wear a mask during a presidential debate Tuesday, violating the event's rules even as staff attempted to have audience members wear the protective face coverings.