Latching wonkiness for GT/GTS glovebox is a common problem, and is usually a result of the tiny mounting screws inside the legshield coming loose - scooters vibrate and shake things loose. Giving the bike a regular once-over to tighten bolts and fasteners is normal (I always find a few loose when I get around to doing this).
I had your exact problem on my old GT, pulled the legshield and spent 30 seconds tightening the glovebox screws and everything was fixed. I couldn't believe how much better the glovebox worked. The time-consuming part was removing the legshield, but it's not difficult and certainly in the realm of most home mechanics with basic hand tools.
I don't think it's unusual for this problem on a new bike, because new bikes always have some loosening after break-in, all those surfaces are getting used to each other and mating to one another, some more successfully than others. When I've done a first service on any new scooter I've found lots of loose stuff that needed tightening. It's not a manufacturing defect, it's just the nature of scooters.
Robot has a video on tightening the glovebox that helped me a bunch, and I think this is the video:
Good luck, crack a beer with friends while you're doing it if possible, have some good music on if you'd like. It's fun to get to know your scooter, and it's free. 🛵😍