This is going to come as a shock to some folks but people don’t need to have the same politics to get along.
My wife is more conservative than me. We don’t spend much time talking about politics and avoid being dicks to each other. When elections roll around we go to the polls and I’m sure cancel out each other’s votes for a bunch of candidates.
When you and another person believe that there’s more to life than politics it’s easy to not get hung up on them when it comes to personal relationships. When you or the other person allow politics to dominate your life it isn’t.