Webp images conversion for Apple devices

On safari and Chrome on mobile my webp images are not displaying despite using cloudflare and siteground. Floripare - a user (Floripare) on this site kindly offered some suggestions and provided the code below to resolve this issue however, only some of the webp files are converted and therefore display on apple devices whilst others arent and wondered if anyone know why only some are converted and some arent? Is this code incorrect or is there another workaround please?

A post was merged into an existing topic: Images on siteground not working - Ive seen this has been posted before but am struggling! PLEASE HELP