Follow either of these procedures:
Hyundai Sonata LF 2014-2019 Service Manual: Components and Components Location
Components
1. Windshield glass 2. Windshield moulding mounting bracket3. Windshield glass side moulding4. Windshield glass upper moulding
...
Hyundai Sonata LF 2014-2019 Service Manual: Repair procedures
Removal
1.
Disconnect the negative (-) battery terminal.
2.
Remove the center facia panel.
(Refer to Heating, Ventilation and Air Conditioning - "Controller")
3.
Disconnect the body control module connectors (A).
4.
Remove the body control module (A) after loosening the mounting nut ...