How to set the background to pure white in the rendering?

Just switch Display mode to “Visualised” and you’ll get same result as in rendering mode.

But that will bring shadows and lights so you’ll end up with gray BG again.