Some smart trainers come with a cassette, but it will be a narrow block 11-speed road cluster and standard HG freehub. Because of the 10T small cog on both Sram and Shimano cassettes, your bike also more than likely has a SRAM XD Driver or Shimano Microspline freehub, meaning your gears may be incompatible without an extra purchase.
Most trainer manufacturers also make XD and Microspline drivers for their direct drive turbos, so you can run the same cassette you would outdoors. Before committing to a smart trainer purchase we would recommend you check that the required freehub is available.