Hillary Clinton appeared on the “Watch What Happens Live” show just two weeks before host Andy Cohen tested positive for COVID-19.

Cohen on Friday wrote in a post on Instagram that he had tested positive for the virus.

“After a few days of self-quarantine, and not feeling great, I have tested positive for Coronavirus,” he wrote. “As much as I felt like I could push through whatever I was feeling to do #WWHL from home, we’re putting a pin in that for now so I can focus on getting better. I want to thank all the medical professionals who are working tirelessly for all of us, and urge everybody to stay home and take care of themselves.”

Clinton, 72, and Cohen, 51, taped a show on March 4, with the program airing on Bravo the next day. She was there to promote the new “Hillary” documentary series that is now streaming on Hulu.

At one point, Clinton did a “shotski” — a shot of liquor taken off of a ski — with Cohen and Dorinda Medley, a former star of “The Real Housewives of New York City.”

Cohen’s celebrity friends wrote words of encouragement on his Instagram post.

“Rest up. Love you with all my heart,” musician John Mayer wrote, while actress Sarah Jessica Parker posted three heart emojis.

“Sending you love and healing, Andy. Get better so quickly!!!!!” actress Busy Philipps said. TV host Kelly Ripa wrote: “Oh nooooooo Andy. I’m so sorry i love you,” and included some heart emojis, too.

Cohen is one of several celebrities to contract COVID-19, including Colton Underwood, Daniel Dae Kim, Idris Elba, Tom Hanks, Rita Wilson and Kristofer Hivju. He had planned to continue doing his show, only from home, but has canceled those plans now that he has contracted COVID-19.

The Sun, a British tabloid, said that Cohen is feeling “terrified” after testing positive for the coronavirus.

A source close to the Bravo presenter, 51, exclusively told The Sun that he’s “stressing out” about his shock diagnosis and is “scared” his loved ones could get the virus too.

An insider said: “Of course he is scared. He is terrified, actually. Initially he was not going to get tested and, in fact, he tried to get tested and was refused the first time.

“So the people who say that celebrities have it better and that it’s so much easier for them to get it are not entirely correct. Not in his case at least.”

The source went on: “But he wanted to wait because that is what the CDC recommended. After his cold did not get better and his symptoms got worse he was able to get tested.

“He is scared, yes, as are those around him.”

Clinton’s health problems are well known. In September 2016, Clinton developed pneumonia. She was seen leaving a 9/11 commemoration ceremony in New York, appearing unsteady on her feet. Her campaign at first said Clinton had become overheated at the event, but later announced she had been diagnosed with pneumonia two days earlier.