Help! - Video element auto full screen when play is clicked

Hey all,

I am struggling to find the right code that will allow videos to automatically open in full screen mode when the user clicks play.

I have tried the following code but nothing seems to work, any ideas?

const v = videoElement;
v.addEventListener('play', function() { v.requestFullScreen(); });

Hello Kimberly, how is it going ?? this is mahesh i found some link regarding your query might help please check it once. Just i am crossing fingers to help you. – link

In this link there is code snippet which allows full video type.