7-speed cassette on a Direct Drive trainer

You don’t mention the bike frame but if it is steel, you could spread the dropouts.
I did this to an old schwin frame to make a dedicated trainer bike.
I went from 7 to 11 with no problem.
You will need a new shifter.