A room-temperature, ambient-pressure superconductor would be the breakthrough required for doing this at scale. This of course would still require significant infrastructure investment.
The project is reported as costing $30 billion (22.6 billion USD) - but I think that also includes a 12,000 hectare solar farm and a bias battery as well.
China has had 2000km+ lines online for years now, so there's precedent. Not for solar specifically, but plainly to connect distant grids.
We have huge fiber optic connectors wrapping the planet, so there's precedent here as well.
Overall a global solar grid is technically feasible and actually not terribly expensive, but we need to solve the political issues preventing it first.
EDIT [0] for comparison highways cost $4mln per kilometre in the US and double to triple that in the EU.
https://caseyhandmer.wordpress.com/2020/12/27/the-future-of-...
Still, it's going to have to happen.
(At some point we might get a cheap flow battery or CO2-to-fuels system going, which lets you literally put electricity in pipes and tanks)