Firefox mobile disable auto landscape screen while video played on full screen

Hello I’ve been stuck on this topic. Below is a stackoverflow link and code examples.