Not just a screen, but as an external touchpad. And then that there is software that will allow you to both mirror the display and forward the touch commands to the phone.
Note that it may also matter what type of phone you have. Some older phones can output video using a MHL adapter, but that won't allow you to use an external touch device at the same time. More recent ones can use a USB-C to HDMI cable, but I expect that to have the same limitation. So I guess you are looking for a USB-to-USB connection, which will require software support from both devices.