They say that the way you should view disagreements in relationships is “us vs the problem” and not “me vs them” and I think that to a certain extent that mindset can also be helpful when engaging in political or ideological movements
Taking feminism as an example, it’s a lot easier to see trans people and intersex people and even cis men as your allies within the movement when you view your movement as “us vs inequality and sexism” and not “women vs men”
If you’re some form of a socialist then working with people with different political ideologies than you becomes a lot easier when you view the problem as “us vs the bad system” instead of “socialists vs everyone else”
I personally at least find most problems easier to tackle once I attach this sort of mindset into it. You do not inherently in every situation need to view other human beings as your enemy. And in fact when your goal is to solve the problem and not to Defeat Your Opponent then you can get more creative with your problem solving.