There will be a tipping point where production and wide distribution of petrol and diesel becomes unsustainably expensive; it really relies on massive volume to work at all.
There are use cases for public transport. There are usecases for trucks and SUVs. EVs currently seem to be limited to a "city car" role, which is a category that's hard to understand.
I would be shocked if IC-engined vehicles were no longer being produced in 2050.