When you add a new coupon, you will see an option to select whether to hide coupon or not.
If you select ‘Yes’, the coupon will be hidden. You can see in the preview how it looks when coupon is hidden. The functionality to show the coupon will not work here. But it will work properly in your posts and pages where you put the coupon.