Honestly, I’d tackle it with cold first rather than heat. Heat can make gum softer and smear it deeper into the plastic or metal. Put a few ice cubes in a zip-top bag, or use a cold pack, and hold it against the gum for a few minutes until the gum hardens. Then gently scrape it off with a plastic scraper, an old credit card, or a stiff nylon brush. Avoid metal scrapers, because they can scratch the bin surface badly.
Once the bulk is off, clean the leftover sticky film with warm water and dish soap. If it’s still stubborn, try a citrus-based adhesive remover or a little isopropyl alcohol on a cloth. Test it on a hidden spot first, especially if the bin is plastic, and avoid acetone or harsh solvents that can melt or discolor the surface. For metal bins, a small amount of WD-40 can help lift the residue, but wash it away afterward so the bin isn’t slippery or greasy.
If the bin is a public one, be careful not to let chemical runoff flow into a storm drain. Wipe up residue with a rag or paper towel and put the gum in the trash—not back on the street. For large, messy patches, a low-pressure pressure washer or steam cleaner can help, but keep the pressure gentle so you don’t splash gum onto nearby surfaces. Finish by rinsing and wiping the area dry. It’s a bit of patience over force, but it usually works without damaging the bin.