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