That assumes a closed system.  Consumers will be given the choice between goods from Mexico at a temporarily higher cost vs goods produced elsewhere that may enjoy a temporary cost benefit.  The consumer has some choice of which price to pay. Companies in Mexico will be faced with the choice of raising their prices to their US distributors/customers or losing market share.  That's the leverage of the tariffs.