It's so huge, in fact, that it doesn't actually orbit the sun. Not exactly. With 2.5 times the mass of all the other planets in the solar system combined, it's big enough that the center of gravity between Jupiter and the sun doesn't actually reside inside the sun — rather, at a point in space just above the sun's surface.
Here's how that works.
When a small object orbits a big object in space, the less massive one doesn't really travel in a perfect circle around the larger one. Rather, both objects orbit a combined center of gravity.
In situations we're familiar with — like Earth orbiting the much-larger sun — the center of gravity resides so close to the center of the larger object that the impact of this phenomenon is negligible. The bigger object doesn't seem to move, and the smaller one draws a circle around it.
Jupiter is scary tbh, its just a loose cannon planet that it could end everything for us the moment it stops wanting to conform, if she floats out of our solar system, we get peppered and lashed with meteors that she would normally deflect, and if she floats towards us, then all the planets will be pulled into her