yes this is a living shulker facing up with air space/top half slab above him and if you trap him like this its save in survival mode (as long as you are on the same elevation +-3 blocks, after that some lucky shulker bullet might make it out)
somehow almost touching a shulker makes you enter swimming mode and you can crawl through that hole