You cannot drive continuously from Toronto to Mexico by car.
The Rio Grande River (Río Bravo) forms the US-Mexico border. While you can drive to border crossings (e.g., Laredo, Brownsville, El Paso), no road bridge or tunnel connects the US and Mexican road networks directly across the river at most points. Vehicle ferries operate at limited locations, but standard cross-border driving requires:
Toronto to US-Mexico border: ~3,800-4,200 km (2,400-2,600 miles) through Canada and US. Then the river crossing complication.
Fly Toronto → Mexican destination (direct or via US hub), or drive to US border city, park, fly from nearby US airport into Mexico.