The units you set on your device only affect what you see on your device. Likewise, how you set the units on Garmin Connect only affects how you see the units on Garmin Connect.
But if you are seeing both metric and miles on Garmin Connect, then as is frequent with them, something is amiss. You should tell Garmin Support.