K.W.
Generally, the best way to prevent them is to make sure her immune system is strong. It is a lifetime virus that just occasionally flares up.
This is a fairly effective, cheap and non-toxic homemade medicine:
Boil a few teabags in a cup or two of water. Basically, you're making very, very strong tea. I've always used black tea, but I've heard lemon balm works too. Remove the teabags and/or strain out the tea. Continue to boil down the tea until you've only got a tablespoon or so left. Do not burn it.
Take the tea concentrate and pour it into a small jar or jar lid. Leave it open to the air. When it cools, dip a cotton swab into the medicine and apply it to the sore.
Allow the remaining medicine to dry. Whenever you need to use it, wet a cotton swab and rub it on the dry tea, just like watercolor paints. The medicine will keep indefinitely as long as you keep it dry.
Start applying the medicine several times a day as soon as you notice a sore emerging. If you catch it at the "tingly, but invisible" stage, you can sometimes prevent the sore from emerging entirely, but this requires your daughter to be alert enough to notice and tell you. Otherwise, it just speeds up the healing process.
There's a number of over-the-counter medicines you can use as well. Experiment and see what works best for you.