ATGMs (especially old ones) have taken over the role of former infantry guns.
They are nevertheless more an improvisation in bunker busting, just as most WW2 Panzerfaust munitions (millions were produced) were used as bigger hand grenades and were not fired at tanks.