There are very good, very practical reasons we moved from glass (and metal and other materials) containers to plastic. Unless those factors are sufficiently addressed, plastic is here to stay.
For those who haven't been keeping track or are just too damn young to know history, those factors include:
* Weight. Glass and metal, and also other materials like ceramic and wooden containers, are heavy compared to plastic. This additional weight means it takes more energy to transport, meaning more costs in fuel and labor.
* Fragility. This namely applies to glass; glass containers are fragile and they are very dangerous to handle if and when they break. Plastic containers are much more durable, and even if they break they are seldom as dangerous as broken glass. More broken containers also mean more goods lost to spillage, which in turn means additional cost to re-manufacture and re-ship.
* Durability. Going along with the above, plastics are equal to metal containers in keeping contents and the outside world separated. This is incredibly important for ensuring food safety.
* Contaminants. This applies primarily to metal containers, but also paper and sometimes ceramic. Metals leach into foods, this is mostly prevented with special coatings but it's not perfect and the coatings themselves are also contaminants that will eventually leach. Likewise paper containers which have coatings applied so liquids don't seep through, and sometimes ceramic containers to prevent leaching. We know these contaminants are bad, unlike microplastics where we still aren't conclusively sure.
* Cost. Plastic is cheap compared to basically every other material we can make containers out of. This is a great boon to the consumer who ultimately ends up paying the most markup.