Comedian Chelsea Handler revealed Friday that she was so emotionally “unhinged” after President Trump’s 2016 election win that she had to enter therapy.

Ms. Handler told HBO host Bill Maher that she realized during therapy that Mr. Trump’s victory against Hillary Clinton dredged up old emotions stemming from the death of her brother.

“I had a midlife identity crisis once Trump won, because I had never had my world feel so unhinged, I think,” Ms. Handler said on “Real Time with Bill Maher.”

“I had to pay a psychiatrist to listen to me b–- about Donald Trump for about the first three weeks,” she said. “And then once when we got past that and got to the real stuff, I realized the parallel there was my world becoming unhinged when I was a little girl — my brother died when I was 9 years old.”

Ms. Handler’s eldest brother, Chet, died during a hiking accident when he was 21 and she was 9.

“I had never related the two, but for me, as I can imagine it must have been for so many people, it was a huge emotional trigger of everything being destabilized,” she said of Mr. Trump’s election. “And I realized just how spoiled and privileged I had been all my life to realize — to be this upset and this on-a-10 every day and the outrage and the anger. I just wanted to f–ing fight people, you know? And I was like, ‘I have to go see a psychiatrist.’”

Ms. Handler said the 2016 election also prompted her to cut back on her drinking and start smoking pot in order to mellow out.

“I pivoted, I pivoted towards weed and cannabis,” she said. “And for me, who’s kind of a very active and high-strung person, I needed — the cannabis was a gateway drug to meditation.”

Ms. Handler said she’s working on developing a type of marijuana that removes the munchie factor.

She also agreed with Mr. Maher that the unwanted touching allegations against former Vice President Joseph R. Biden “diminishes” the experiences of women who have “actually” been victims of sexual harassment.