Factors that influence whether you can just replace the glass:
* Condition of the housing: If the plastic housing is cracked or broken, replacing only the glass won't fix the problem.
* Type of mirror: Some mirrors are designed for easy glass replacement, others aren't. Check to see if there's any visible way to access and detach the glass (clips, etc.).
* Availability of replacement glass: You need to be able to find a replacement mirror glass specific to your 1998 Pontiac Grand Prix. Auto parts stores often sell them, but ensure it's the correct one.
* Your DIY skills: Replacing the glass can be tricky. If you're not comfortable working with small parts and potentially sharp edges, it's best to take it to a professional.
In short: While it's *possible* to just replace the glass, it's not guaranteed. Inspect your mirror carefully before buying a replacement glass. If the housing is damaged or you're unsure of the process, replacing the entire assembly might be a more practical and less frustrating solution.