The default SPI pins (miso, mosi, sck etc.) are different between those two boards so you cannot use the same sketch as you did with the ESP32 without adapting it for the S3 variant.
This post may help to determine the correct pins: Blank ILI9341 screen using esp32 s3 - #13 by horace