Make sure they can't get out.
The first things dogs do when fireworks are going off is try to get away from the noise. Animal control officials say there's 30 to 60 percent increase in lost pets between July 4-6 each year. So make sure they're either secure inside the house, or that they have no way to get out of the fence.
Keep them calm when you're home.
If you're staying inside when the fireworks are going off, create a comforting environment for your dog. Either crate them or play some soothing music. Or just let them lay in your lap and pet them.
Make a plan for them if you're leaving them alone.
If you're heading out to catch a show, make sure your dog is as comfortable as possible before you leave. Try giving them a treat or their favorite toy as a distraction.
Try soothing blankets or clothes.
Things like Thundershirts can help your dog stay calm if they get nervous. If you don't want to purchase one, there are DIY options as well.
Use medication if necessary.
If you have absolutely no other options or you live next to a place that hosts a firework show, consider talking with your vet about the medication options for your dog.