This is no surprise. Hot glue WILL melt in hot sun. It's not intended
for such uses. It's mostly just for crafts that are not exposed to
weather. Personally I find little use for it, but craft persons use it
a lot. Epoxy is a better choice. They do make epoxy specifically for
plastic. I've used it and was satisfied. Regular epoxy may not work
well on many plastics.