A/B test with dynamic page
please , guide me how to prepare A/B test where
A version is that a user enters URL,
https://www.samsung.com/pl/smartphones/galaxy-s20/buy/?modelCode=SM-G781BZGHEUE
clicks 'Dodaj do koszyka' button and sees the pop up before going to webcart (https://www.samsung.com/pl/web/cart/)

B versions is the same URL
https://www.samsung.com/pl/smartphones/galaxy-s20/buy/?modelCode=SM-G781BZGHEUE
but when a user clicks 'dodaj do koszyka' button, he is redirected directly to checkout :https://www.samsung.com/pl/web/cart/

is it possible at all ?