On my MI6, PIP mode is not working properly. With Youtube Vanced installed, its working sometimes, but most times when I press home button it just minimizes Youtube Vanced, and enabled background playback.
I am coming from LineageOS 15.1, and it was working fine there.