This isn't my experience, so I went looking and found this:
> Uniform Unit Pricing Regulations apply only when stores voluntarily provide unit pricing information. The unit of measure chosen must be consistent across like items within the category.
So if a store offers unit pricing it must be consistent within a category.
https://www.nist.gov/pml/owm/laws-and-regulations/us-retail-...