This is an interesting one. I went to a big machinery show at the weekend and marvelled at some of the steam powered machinery still out there that people have put a massive amount of effort into maintaining and restoring. I suspect though that the still functioning steam powered stuff out there is a ridiculously tiny percentage of what may have existed when steam was king. Steam is probably the closest parallel we can draw with one important difference - as far as I know steam disappeared WITHOUT legislation that mean it could no longer be used (economics, efficiency and output were the big drivers). The petrol engine is likely to be legislated out of existence. The worst polluting petrol cars (ie with older style engines) I think will likely be the first targetted, with heavy restrictions placed on their use. Ultimately when petrol is phased out altogether classic car owners at the time will have the choice of either converting their car to an EV, keeping the petrol engine and having sever usage restrictions, or consign their car to being a museum piece.
This final end state is still a long way off but the signals coming from a lot of countries on new vehicle manufacturing legislation (and from manufacturers themselves) suggest that we are in the unique position of witnessing the start of a massive shift. Think steam to internal combustion, horse to motor car etc.
Couple this with driverless technology advances and the change will be substantial ! Not sure if there would be a vinyl record like re-surgence with those factors in.