Help with Game on PC and Mobile

Hey, so I’m currently working on a game which I’m deciding to release on PC and on Mobile, I’m still at a beginner level or around that level. Currently I’ve finished the main mechanics and I’m working on widgets like the UI and controls for both mobile and pc and was wondering, Is there a way when releasing the game for Unreal engine to detect which platform I’m using and then choose the correct UI that i specified, or the correct models etc… I thought of Splitting the project after finishing the main mechanics and the necessary stuff for the game but that would make it were if i need to change something on 1 of the projects I would have to do it on the other and I don’t know if that’s optimal. Would appreciate some insight and I’m sorry if it was hard to understand due to my poor English skills.