Masking of Sentinel 2 data

Please be “more” specific about your problem, otherwise it is hard for us to help.
In case you mean the warning on the different resolutions: You can perform resampling and then use the mask on the resampled product as described here: