Go to ”Play”, then ”Friends” and press ”Join Realm”
You’ll need a copy of Minecraft for mobile, console or Windows 10 to accept this invite.