I have been using next/Image
in conjunction with tailwind to display an image as a banner that spans the entire width of its container, which happens to be the full page width.
The challenge I am facing is that the image appears distorted and unbalanced on mobile devices, and I need to address this issue. I've attempted solutions from two other resources on this platform (here and here), but haven't found a working fix yet.
I have a suspicion that the problem lies within the height set on the parent div, and I'm open to adjusting it if it can help resolve the issue.
<div className="relative w-full h-[476px]">
<Image src="/banner.jpg" alt="Banner" fill />
</div>