WARNING: This page is about a different car, the 2019 Kia Sorento. However, it is still accessible from the selected car via links, so may be relevant.
Disconnect the negative (-) battery terminal.
Remove the mirror (A) from the mirror holder.
Courtesy of KIA MOTORS AMERICA, INC.
NOTE:
Be careful not to be damage the fixing clips (A).
Courtesy of KIA MOTORS AMERICA, INC.
Disconnect the heating connectors (A) and BSD indicator connector (B) from the mirror.