Maybe the person you thought was your ‘friend’ just isn’t there anymore - or never really was.
People can change drastically throughout life.
Same thing happened to me. A friend of over 40 years - going back to high school - with whom I shared political, religious, and social views suddenly became rabidly liberal. He’d recently had a mild heart attack and, at first, I wrote it off as the somewhat normal change in personality that occurs after a heart procedure, but it continued to get worse. I tried to talk to him, but it reached a point where the negativity was too much. I politely wrote to him to say that life is too short (and he should be painfully aware of this) and that relationships should mean more than ideology. I pointed out I have several close friends on the other end of the political spectrum, but we choose friendship over conflict. Alas, we’ve not spoken in a few years, and I miss him but I choose to surround myself with love not anger.