An object will topple over when the vertical line through its centre of gravity falls outside the base.
The centre of gravity of each car is shown by the black dot.
The animation shows that if the centres of gravity of the two cars are the same distance above the ground the wider car is more stable and can tilt further before toppling over.