Almost a century ago, after elections to the Polish Siam, there were some who celebrated the victories and success of the chareidi community.
The Chofetz Chaim wrote the following in response:
The posuk in Mishlei says: "He who mocks the silent insults his Creator. One who rejoices at another's downfall will not be absolved." We are warned by this not to rejoice or laugh at someone who suffers a setback or anguish because one who does so will not be absolved. It also says, "When your enemy falls do not rejoice and when he stumbles your heart should not celebrate,"
We should warn those who rejoice at the suffering of their fellows and laugh at the downfall of their friends, because they will not escape the judgment of Heaven.
Once when a certain party (PAI) had an electoral failure, and some reacted with celebration, HaRav Shach zt"l gave a special shmuess. He says that bnei Torah do not have a concept of a victory celebration. There is a mesibas hodaya, giving thanks for Heavenly assistance but no victory celebration. We should not pat ourselves on the back when we are successful because it is about this that the Torah says, do not say that "my might and the power of my hand have brought me all this success," it is about this that we are warned, "When your enemy falls to not celebrate."
Our great educator HaRav Avrohom Yosef Wolff zt"l said once: In Am Yisroel there are no parties. There are tribes. When the tribe of Benjamin was defeated all the other tribes mourned because all the tribes are really one group."
Our task and goal is to be mekadesh Shem Shomayim.