Here in Indiana, grocery stuff has price per unit on shelf tags, sometimes pretty small but usually readable.
And you’re right, sometimes a large box of cereal is more per ounce than a smaller one.
You have to calculate the unit price because too many times the shelf unit price tag is wrong.