https://www.youtube.com/watch?v=N4y1WDl-WP8
The planets orbit the Sun in a nearly flat plane, but that plane is tilted relative to the Milky Way’s disk as the whole Solar System circles the galaxy.
At roughly 230 km/s, the Sun completes one galactic orbit in about 220–250 million years, carrying the planets along the same path.