Works with my HP Specter 13 inch. on a 24" LG 4k display. Just plug it in and it automatically selected 4k resolution and worked fine. Refreshing at 30Hz worked, although HP can run at 60Hz. Keep in mind that some USB-A type ports 3.0 or multiport adapters can't handle 4k on their own, USB C seems to handle it better, be sure to check the adapter and connector specs.
USB to USB Type-C adapter
18 Review
Cable Matters USB C to HDMI Adapter - 4K 60Hz, 60W Charging, Thunderbolt 4 Compatible for MacBook Pro, iPad Pro
12 Review
Cable Baseus Cafule USB - Lightning, 1 m, black/red
26 Review
4K / 30Hz USB-C to HDMI Adapter - 3-in-1 Type-C Converter Cable for MacBook Pro, MacBook, Mac Pro, iMac, Chromebook, and USB 3.0 Type-C Devices (2017/2018)
13 Review