Layer Based Visibility Manager (LBVM) plugin is an easy-to-use tool which can help you batch managing multiple actors’ visibility in both Editor and Runtime. With this plugin you can easily and quickly build maps that need to change actors’ visibility frequently and massively.
About 5.1:
This code plugin also supports UE 5.1, but Epic only accepts the lastest 3 engine versions. So if you want to use this plugin's 5.1 version, please leave a question here to show you've bought it, then email logerlaw@gmail.com, I'll reply with it.