Firefox does not use graphics card by default

Firefox does not use my graphics card unless I open it with the “discreet graphics card” flag. I am checking this with the nvidia-smi tool. When I check the about:support Graphics section, Firefox tells me that my GPU is “active” but it lists it as Mesa Intel(R) when my card is nvidia. I have enabled acceleration and in the “Compositing” field it says “Webrender” which should mean things are working. However when tested it shows it doesn’t. So either nvidia-smi does not show what is going on correctly or I need to fix something for the browser to use the card.

By the way this also happens with Chromium derivatives.