Delta-8 THC might show up on a drug test. Most standard drug tests are designed to detect metabolites of delta 9 THC. Since Delta-8 and Delta-9 THC have similar chemical structures, they can potentially produce similar metabolites.
The body metabolizes both forms of THC into THC-COOH (11-nor-9-carboxy-Δ9-tetrahydrocannabinol). This is what most standard drug tests are designed to detect. Therefore, using Delta-8 THC can likely result in a positive drug test for THC, even though it might be legal in your location. If you are concerned about passing a drug test, it's best to avoid all forms of THC.
However, it's worth mentioning that the exact results can depend on the specifics of the drug test, including its sensitivity, and how much and how frequently you have been using Delta-8 THC. To be on the safe side, it's best to avoid using Delta-8 THC at least 30 days before a drug test.