From what I’ve read the key factors are pressure (level of carbonation), size of nucleation points, temperature, viscosity, and the make-up of the protein matrix that forms the “skin” around the bubbles. The shape of the glass can also make a difference.Some things like champagne have a stream of very tiny bubbles. Some champagnes vary from others.
Some thing like coke have very big bubbles
Some beers have a fine stream of little bubbles, whilst some have bigger ones.
The Hefeweizen I'm drinking at the moment has bubbles that get bigger as they go up the glass.
What factors contribute to bubble size?