Shelf brackets extend past the shelf
If they were the &quot;exact size of the previous ones&quot; you may have them rotated &quot;the other way&quot; - many shelf brackets are not the same length on both legs, so you may have had the longer leg on the wall and the shorter leg on the shelf in the previous installation, and the longer leg on the shelf this time.
Flip them around and see.