I can't download Xcode because my Mac mini is not up to date. However, there are no updates for my Mac mini. Is there anything to do?
You can get earlier versions of Xcode from here:

https://developer.apple.com/download/more/?=xcode

This may be an option if you can't upgrade the OS.