MAGENTO 2 – Show custom block by attribute on product page [size chart]


I would want to show different size chart pop up by attribute on product page. For example:

I have an attribute called size chart, and this attribute can be 1 or 2. When the attribute value is 1, the product page should show the size chart template number 1. And on the other hand, when the value is 2, it has to show table number 2.

Thanks!!!