you can use the blueprint node “Get Active Device Profile by Name” (it’s name is not intuitive i think, so not easy to find). It returns the type of device as a string.
So if you combine this with a “Switch on String” you can make your desired changes.
If there is no “Get Active Device Profile by Name” shown in blueprints, make sure to enable the plugin “Mobile Patching Utilities”, it needs to be activated.
Tip:
All devices have standard names. To find out how these are exactly called you can check the Device Profile Setting.
These can be found in the UE4 Editor under “Window > Developer Tools > Device Profiles” .