Change color of iPhone notch bar to the current section

I have a dark website. On my iPhone the bar at the top next to the notch is white and gives an ugly contrast. I could give the body a color, but that wont solve it because i have different colors in certain sections. I have seen websites where the “notchspace” is changing the color based on the current section. How is this possible?

Hey @Koenigskind you will need a bit of JS for this, but nothing crazy. Here is a good tutorial: Coloring the WebKit Browser Bars. A few tips for vastly improving the… | by evan kirkiles | Medium

1 Like

Thank you! I tried it, but with my zero code knowledge, i just dont understand it.