I was curious so I checked on of my sites and I noticed one of the pages with an image doesn’t display the width/height in the HTML, but the other does. It is the same image. I went back to the first page and reloaded the image and saved it. Now it displays the width/height in the HTML.
The only thing I can think of (in my case) it’s possible that the page that didn’t display the code may have been a page I created a long time ago (before FSE) and it just didn’t convert correctly? I really don’t know.
You might try reloading the image and see what happens.
Hmmm it does not work for me, i noticed that all posts and pages images dont have width and height even some new posts, but archives page posts, have image dimension, i will duplicate website on local and do some test.
Thank you for your help Matenkosky
Your solution works, i had to purge the cache ( using cloudflare )
thanks again for your help Matenkosky