This concern is why ESG investing has picked up, though personally I'd call that more of an opportunistic way to convince people they can have their cake and eat it too (and take a nice fat cut of the profit in the meantime), given how much of this trend has been characterized by gaming scores, rather than a renaissance of people actually digging into the companies they invest in to ensure their money is doing good in the world.
I don't have a great solution to apply to the masses. Personally I enjoy researching my investments, but am well aware people don't all feel this way.
Not investing for the future, however, feels like rather than finding a solution, it is just the "throwing one's hands up in the air and giving up" option. And the results are, well, what you might expect.
Perhaps the best solution is for people to find what DOES interest them to invest in. The options aren't limited to company stocks, or real estate, debt, or even commodities. A larger and larger portion of the market has been opening up to retail investors with increasingly minimal costs. Perhaps no solace to the 50+ crowd that hasn't started yet, but at least hope for younger generations to have better options to avoid the same fate.