WARNING: This page is about a different car, the 2021 Hyundai Kona. However, it is still accessible from the selected car via links, so may be relevant.
Remove the mirror wiring cover (A).
Courtesy of HYUNDAI MOTOR AMERICA
Remove the mirror connector (A).
Courtesy of HYUNDAI MOTOR AMERICA
Remove the mirror (A) pulling up in the arrow direction.
NOTE:
Take care not to damage the mounting bracket during removal.