It literally doesn’t. The price is the same either way. Reduced demand from the higher tax makes it so producers will lower prices. This is really basic microeconomics.
From Wikipedia: “tax burden does not depend on where the revenue is collected, but on the price elasticity of demand and price elasticity of supply”
Do you actually think that 100% a tax burden will always fall on consumers?