My Bootstrap 5 page is designed with multiple sections featuring different background colors, and I've incorporated ragged edge images to create irregular borders between some of these sections:
https://i.sstatic.net/0uwzU.png
The top image resides in the blue section, while the bottom one is part of the green section. Due to the seamless alignment, they appear connected to the middle section. This layout looks great on desktop but when viewed on a mobile screen, the browser introduces a gap between the image and the section border:
https://i.sstatic.net/ewYaN.png
I've ruled out the possibility of it being related to SVG files as I even converted them into PNGs without resolving the issue. In my actual code, the SVGs are linked externally rather than inline as shown here. Despite inspecting the code using F12 tool, I couldn't find any margin or padding values causing this inconsistency.
Any suggestions?