You can get these plastic stubs that strap to handlebar stems (or other places.) I use these to mount the computer from the stem, which leaves my bars free. In the pic below you can see a gray circle on my Old Peugeot’s stem. This was just before I finished the bike and mounted all the electronics.