These suggestions are not really about the election per se. They are applicable to any disappointments that are beyond our control.
For example, I hear all the time from people who are anxious and depressed because of what they are missing out on because of the coronavirus pandemic. The advice I give? Don’t ruminate on what you are missing; don’t personalize the pandemic as if the gods were out to get you; don’t catastrophize by assuming that things are permanent; don’t ignore the world directly around you, which you can affect; and don’t miss out on the opportunity to help others who are suffering.