#### Found the solution ####
I tried and fixed this in my Nokia 6.1 plus Android version 9 Pie
The hidden settings under Wifi Preferences will manage this option
1. Go to Settings >>
2. Search for "Wifi" in the settings search bar >>
3. Find the settings "Switch to mobile data...