PIP Mode remains in the background

I have merged Jitsi into my own application. But when I am in a call and enter PIP mode, it still remains in the background even if I end the call. how to get around this ?
@saghul @damencho

What remains in the background? Does your app use the welcome page?