Had a similar thing happen on a Mk8 when the dash trim popped off after a hot spell. A few things worth checking before you reach for glue:
First, look closely at the clips on both the strip and the dash. On these the clips are often slightly bent or splayed after the strip comes off, so gently straighten them with pliers or a flat screwdriver and check none have snapped inside their slots. If a clip has broken off, that's usually why it won't hold tight.
Second, line it up fully and start from one end, pressing each clip in one at a time rather than pushing the whole length at once. Doing it with the car warm helps a lot, as the plastic is more flexible and seats better.
If it's still loose after that, a few small strips of thin double-sided tape behind it is a lot kinder than glue and can be undone later. A replacement strip is also cheap if the clips are knackered.