Swiper ViewEncapsulation.None affects Sidemenu

Hi, I want to show some images in a small gallery as slides via swiper. Unfortunately the ViewEncapsulation.None, which is needed for swiper changes the sidemenu appearance:

Before:
capture_002_11102021_162318

After:
capture_001_11102021_162300

Is there a way to prevent this?