This should be reopened as a Java Parity issue as on Java Edition, the temple structure is split into stronghold, desert_pyramid, igloo, jungle_pyramid and swamp_hut.
Also in 1.16.40 Hotfix and on Android.
May be related to MCPE-98305.
Also found this on my realm, but found it worked in non-realms too.
It also happens on Bedrock with Android 9.
Attached below is my experience on Android.
Affects 1.20.41