You'll need a compatible USB-C - to HDMI cable (that will prompt you whether you just want to mirror your phone to the TV or kick into DeX mode and use the TV as a monitor). For keyboard/mouse, you can either use Bluetooth ones, USB ones (if your USB-C adapter has multiple ports) or just use your phone as a keyboard/trackpad.