Apple artificially breaks the intuitive connection between the Ring vs Silent status of the hardware ringer switch and the various and sundry Focus notification modes. The Shortcuts app doesn't connect with either.
Some fools jailbreak iOS (or iPadOS) and use third party tools. However, this can cause the device to lag behind important security updates.
Even so, the hardware switch would be unidirectional, failing to physically move when software silent modes engage.
Instead, we can fix notifications, without requiring jailbreaking. By removing Banners from each app. Use some combination of sounds, haptics, badges, lockscreen entries, or notification center entries.
Visual clutter can also be reduced by disabling badges.
If it's unimportant, disable all notifications for the app.