You can no longer join realms with only a double click, you need more than that, about 4 clicks. This was not the case in 1.17.
Double clicking did nothing
Double clicking would let you into the realm