You can use a
Line Level Source Selector
https://www.amazon.com/Technolink-TC-721-Turntable-Source-Selector/dp/B078RV1KBX
OR
https://www.amazon.com/Automatic-Two-Way-Source-Selector-Activated/dp/B00L9YVL90
https://www.amazon.com/Technolink-TC-721-Turntable-Source-Selector/dp/B078RV1KBX
OR
https://www.amazon.com/Automatic-Two-Way-Source-Selector-Activated/dp/B00L9YVL90