You can add loading="lazy" attribute to any image, iframe tag element in your HTML code to enable native lazy loading feature. But it sometimes, may not work. There is one simple but important factor listed below, that you need to keep in mind to make sure that it works perfectly.

You have to add proper width and height attributes to the img or iframe tags, to make sure that the lazy loading works without any layout shifts or any other noticeable issues.