The device’s MAC address stays constant, whether connected via ethernet cable or wireless media. However, if you have MAC randomization enabled, you can get different MAC addresses from the same device on either connection. In this case, the device changes its MAC address in the time between disconnecting from Wi-Fi to connect to Ethernet, or vice versa.