A/B testing advice replacing HTML block content with custom CSS

Any best practice example how to use workers for A/B testing replacing some HTML block content with custom CSS.

I’m thinking using Google optimize to drop different cookies on each variations.

Any tips welcome