Android (Huawei) HDMI output resolution

Hi. I have Huawei P60 pro phone which supports HDMI output to TV with cable so I’m wondering is there a way to adjust output resolution that RetroArch produces to match TV’s native resolution. I want to use my phone for portable retro gaming and also be able to connect it to TV for console like experience.

I’m going to try SecondScreen app which should allow me to change the resolution which is sent to connected screen. Hope it works. Anyone have any better idea?