Gas stations have one shot at survival over the next 30 years: Hydrogen Fuel Cell Vehicles (FCVs).
Part of the reason traditional manufacturers have been reluctant to pursue BEVs (battery-electric vehicles) is that many were betting on liquefied hydrogen as an energy delivery mechanism for FCVs. I presume this was from pressure from current energy companies.
Hydrogen benefits current energy interests because customers would fill up their cars in a way roughly analogous to today's gas stations. Even though the "fuel" product and drivetrain are different, gas stations can adapt for hydrogen.
That is just way too complicated to work out, though, and I think traditional automakers are at the point where they are giving up. The hydrogen infrastructure is hugely expensive and the resulting automotive products are not that much more convenient than BEVs.
Tesla's Gigafactory, enabling products like their PowerWall, is the most straightforward way for us as a society to use more renewables. The problem with wind and solar has always been spotty, inconsistent power generation, and with enough battery capacity, that is no longer an issue. That is a bad sign for gas stations, but an opportunity to pivot for traditional energy companies.