We're not talking about using wire mesh, per se, as a barrier, but rather of scrunching it up into a fairly tight ball/cylinder/whatever and then embedding it in expanding foam. Mice can't get through that, but rats occasionally do.Mice can get through very small holes. 20 mm wire mesh is no barrier to them.
Kind Regards, John