Nick, thanks for the very quick reply. I figured it had something to do with the shortcode.
Just an FYI. I also tried the plugin Responsive Block Control, which didn’t work either, probably for the same reason. Interestingly, I also tried Conditional Blocks, which did work.