I found a solution to add a null alt text to decorative images trough the accessibility helper widget
Check the Image and Dynamic Image widget but they will show alt instead of alt=””.
Maybe you can use the source code of the Image Widget to add this feature and bulit your own Image Pluggable Widget. (https://github.com/mendix/web-widgets/tree/main/packages/pluggableWidgets/image-web)
Previously, we used the Static Image and Dynamic Image widgets. These widgets did not provide an option to explicitly mark an image as decorative. The newer Image widget (see documentation: https://docs.mendix.com/appstore/widgets/image/ ) handles this differently. When no alternative text is provided, the image is automatically marked as decorative by using an empty alt attribute.