Video section of gpu does not work in firefox/chrome

when playing a youtube video the video section of the graphics card does not work. but when i play same video using vlc/mpv the video section does work. I have already installed stuff which was mentioned on archwiki/fedora discussion to get hardware acceleration working but got no luck any help would be appreciated.
SPECS:-

Intel 11thgen i5

gpu= iris xe