At some point of transition the CO2 emissions drop to zero because all the energy at every stage comes from renewables. Solar can pay it's emissions cost back in 6 months but every solar panel company powers their factories with their own solar panels so in practice the practical emissions are reduced a lot and as mining adopts the new electric vehicles most things will tend towards almost nothing. The more renewables are adopted the shorter this emissions payback becomes. Manufacturing in the EU for example is about 55% renewables already.
This is only true on the energy and transportation sides of emissions. Some processes like the creation of cement and refining of steel create CO2 through chemical processes, regardless of the energy source.
You don't necessarily need fossil fuels for steel production. It is also nothing impossible in capturing CO2 from cement making - it's mainly centralized production and much simpler problem than transportation.
You do need a carbon source for steel production. It’s integral to steel. You don’t need coal per se, but you do need to burn carbon. Every technique so far will release some CO2 as a waste result.
The steel industry is one of the largest emitters of CO2, contributing 6%–7% of global greenhouse gas emissions.
That said, there's a difference between sourcing that carbon from fossil fuels, carbon "new" to the current land|sea|atmosphere cycle having been drawn up from where it was sequestered millions of years past, and carbon that is already part of the surface dynamic.
Major steel players, those in the billion tonne per annum mining and processing chain, are already going hard at replacing current steel making with several alternatives and have already built pilot plants to trial low | zero "new carbon" production techniques.
The carbon needed for steel as an alloying element is a small fraction of the carbon needed for reduction of iron ore. The latter is replaceable with renewable energy (hydrogen or direct electrolytic reduction).
Also, note that 70% of steel production in the US isn't from ore at all, but is from scrap metal. Most of the steel used in renewable energy infrastructure will not be consumed, but will be recycled.
On the other hand, steelmaking also uses limestone as flux, to remove impurities from molten steel. When heated on the steel this drives off CO2. Calcium oxide could be used instead, but then that has to be sourced without CO2 emission, just as in cement manufacture.
I think there are at least two ways to make lime without CO2 emission. The first is normal limestone calcination, but with CO2 capture. The other is to use calcium silicate. This means dissolution of the silicate with hydrochloric acid, separation of silica, then high temperature reaction of calcium chloride with steam to produce lime and hydrogen chloride. I understand there's a company trying to commercialize this latter process.
You can eliminate the vast majority of emissions by using hydrogen. Then the waste will be water instead of CO2. This is no longer hypothetical. Pilot plants have been successful enough that at least SSAB is investing billions into hydrogen-based steel production.
Some mines are lucky in that trucks deliver payload downhill, making it attractive to charge batteries regeneratively for the empty drive back up. Where that is not the case, electric driving is not attractive at all. Conveyors and cable cars are much easier to electrify, if applicable.
It’s not incredibly long way at all considering that there’s already electric mining truck in operations. Several varieties in fact (overhead wire and battery-electric).
But they’re a very long way from approaching 100% of mining if that’s what you mean.