<!DOCTYPE html>
<html lang="en">
<head></head>
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>

  <style>
    img[loading]+p {
      display: block !important;
    }

    img[loading="lazy"]+p, img[loading="eager"]+p {
      display: block !important;
      background:green;
    }
  </style>
</head>
<body>
  <img src="https://via.placeholder.com/1200x675/FF0000/FFFFFF.pn