Did this two days ago on my 1998 Malibu.
Push the visor up against the windshield.
Push up on the elbow to compress the spring inside the bezel. While pushing up, rotate the visor toward the door. When it is near being against the door/window it will pull out of the socket. It is like a bayonet connection.
Had an auto upholstery place put new fabric and padding on both visors as they were disintegrating. Cost $40.00 for the pair, look fantastic! Would have cost $160.00 from dealer for this ca