You can try some glue/silicone. I haven't had much luck. The only replacement option is salvage yard, the part isn't available anymore. I happened to find them in near flawless condition a couple months ago, made sure to snag them and save my old ones too. The problem is there is no attachment for it in the top corners so it wrinkles up in the sun. The trim runs from the front bottom windshield all the way around to the middle of the rear window. Be very careful taking it off if you do find it.
They have actually been pretty scarce in the yards by me for the last few years now. Not 5-6 years ago I could go to the yard and have 7-10 to choose from, nowadays I'm lucky if one shows up every few months.