Rendering without background

Hi! I am doing a project in Unreal 4.26 and I am interested in making a “streamer window”. I want to render my character without background in real time. The goal is to be able to do like streamers who, through a chroma, erase the background and overlay their image on what they are streaming.

By now, the only thing I have achieved is to imitate that chroma effect with a green plane, but my character has a lot of hair and I am not quite convinced by this solution. I’ve also checked out some videos on Custom stencil buffer , but I can’t figure out how to achieve my goal with this method.

Do you know any way to render only my character with a couple of lights?

Thank you in advance!