If you want to do it the vanilla way, you just need to set the tileset (FG) to either castle, ghost house or ropes here
The choco way would be to use custom blocks/sprites to imitate the entrance scene. There is for example this sprite here.
I'm pretty sure, there are also some blocks which force yoshi off.
Yes, I has been seen Yoshi soild block, but player will have to give up their Yoshi.