AVIF and WEBP only website

Hey all, I use performance lab to convert all photos to avif upon upload and I don't want to serve jpeg in case a browser doesn't support AVIF (appraently around 8% of users). I want to serve them with WEBP instead. What's the best way to achieve this?

I'm on PHP 8.2

WP 6.6.1

LS server

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer