I’ve got a 11 speed tiagra rear mech and shifter in my parts bin so it should all work with an 11 spd cassette fitted to the turbontrainer.
Tiagra is 10 speed – so you’ll need a 10 speed cassette & wheel which increases the possibility of a bargain, rear road spacing has been the same width (130mm) for about 30 years – unless you pick up something really old you’ll be fine.
Shimano 105 5800-> and Ultegra 6800-> are 11 speed
j
Edit – the 10 speed tiagra might work ok on the 11 speed turbo cassette with a bit of screw twiddling but if you’re only gonna use the one bike ont he turbo i’d fit a cheap 10 speed cassette & keep the 11 speed spare for the good bike