After replacing icons I'm having trouble aligning them

Yes this might be causing some problems, strange that it was removed… I wonder if Google changed something? You can try moving the height/width to the viewbox values instead, that would look like:

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48">