How could the Spanish viceroyalties avoid breaking up and forming smaller countries after independence? They may lose some territory but overall the new country should be a modern version of the original viceroyalty.
Mexico never loses it's southern territories, Gran Colombia remains intact, and Argentina retains Uruguay, Paraguay and Bolivia, as well as its western coast.
Peru and Chile don't need any changes. The Caribbean can also go it's own way with smaller nations.
I think Mexico just needs to be more politically stable early on, same for Argentina, but both have a bigger neighbor trying to mess things up, USA and Brazil. Gran Colombia is probably the most difficult one to keep together.
Mexico never loses it's southern territories, Gran Colombia remains intact, and Argentina retains Uruguay, Paraguay and Bolivia, as well as its western coast.
Peru and Chile don't need any changes. The Caribbean can also go it's own way with smaller nations.
I think Mexico just needs to be more politically stable early on, same for Argentina, but both have a bigger neighbor trying to mess things up, USA and Brazil. Gran Colombia is probably the most difficult one to keep together.