I actively practice not discussing politics but intentionally being member of groups of different political affiliation.
I can only encourage everybody to do the same.
People usually know if you are a „filthy liberal“ or a „closet fascist“ anyways and my experience shows that just knowing you will draw them away from the political extremes.