Hi Maja,
On the web you could use CSS to do so.
https://stackoverflow.com/questions/25970787/use-a-div-as-a-background-for-another-element
For the native mobile the is a Background Image widget in the Native Resource module; https://appstore.home.mendix.com/link/app/109513/
Cheers, Andries