[Idea] Toggle Switch Changes Copy

I had this idea and I am trying to think through the implementation on how you would get something like this to function.

On the site I would like for there to be a toggle switch (much like dark vs light mode) except instead of just changing colors of the site it would also change the content of the site.

The idea for this would be an interactive way of comparing our service vs the competition.

Any idea on how this would be possible?

All the best,