Thats how i have my phone on my tv 24/7.
I used that hub for a while and it worked great. Eventually i wanted a USB A port for my mouse so i switched to this one.
https://www.amazon.com/gp/aw/d/B081VBSNRZ/ref=ox_sc_act_image_1?smid=A1XZCP6KF7BWEX&psc=1
But either one works great. Both have a usb c in port to plug in a charger.