I really hope that automation and robotics will _finally_ allow us to invert the pyramid.
I think the solution is in adjusting our ways of life. Simpler living, smaller houses and more density, being able to walk and bike, shared common areas, increase health span, being able to live independently for longer, simpler hobbies, not needing so much stuff, etc.
Despite the hype cycle around humanoid robots it's unlikely that they'll advance enough to be capable of replacing many human workers in nursing homes and assisted-living facilities within our lifetimes. Expect to see lots of really sad stories about elder abuse and neglect because as a society we simply won't have the resources to adequately care for them all.
It won't. The economic gains of automation will continue to be captured by the capital-owning class. It's simply too valuable to just give over to the masses.
Much more likely is that conditions for elder care will continuously degrade until MAID becomes most people's choice.
Don't know about inverting the pyramid but we may get more pyramid schemes. Like Google and Oracle doing 100 year bonds for AI.