Several do, both fresh and salt water. Goldfish are a well-known plant-eating fish. You can’t keep them in aquaria with certain plants because they’ll nibble them relentlessly.
There are a few coastal fishes In Europe with a diet of mostly seaweed. They are very common but often discarded because their taste is awful and they don't preserve well. People that eats them assures first to remove most of the blood.