# Switching to mobile or tablet in Gutenberg editor breaks images of custom block

**URL:** https://discourse.roots.io/t/switching-to-mobile-or-tablet-in-gutenberg-editor-breaks-images-of-custom-block/26961
**Category:** sage
**Created:** 2024-04-09T12:21:19Z
**Posts:** 10
**Showing post:** 9 of 10

## Post 9 by @strarsis — 2024-04-10T17:09:52Z

When this only occurs in an iframe, then it is caused by the host-relative URL of the image. I also encountered this issue and had to use an absolute path instead.

> [@Custom Gutenberg Block - Styling and images no longer being imported correctly](https://discourse.roots.io/t/custom-gutenberg-block-styling-and-images-no-longer-being-imported-correctly/26957/2):
>
> This appears to be an issue with stylesheet-relative URLs or relative URLs in markup within the new iframe-based Gutenberg editor: [https://github.com/WordPress/gutenberg/issues/31815](https://github.com/WordPress/gutenberg/issues/31815)

---

_[View the full topic](https://discourse.roots.io/t/switching-to-mobile-or-tablet-in-gutenberg-editor-breaks-images-of-custom-block/26961)._
