WARNING: This page is about a different car, the 2016 Mazda MX-5 Miata. However, it is still accessible from the selected car via links, so may be relevant.
Loosen the screw.
Fig 1: Removing Rearview Mirror
Courtesy of MAZDA MOTORS CORP.
Pull the rearview mirror in the direction of the arrow shown in the figure.