Hey -
You should be able to set up a Material using the Utility Expression: Feature Switch in the Material setup itself. Here is the Documentation regarding the Material node,
Utility Material Expressions in Unreal Engine | Unreal Engine 5.3 Documentation
All you would need to do it match the Rendering type to the device you want to use.
Thank You
Eric Ketchum