Perhaps a solution to this would be using an app like Mastodon Redirect? The app does the work of getting instance links so they can be automatically opened and there is also a variant called Lemmy Redirect for Lemmy. The catch is that both developers need to support it and users have to enable each instance manually or run through various commands to do them all at once.