Indeed, there are several approaches to tackling this problem of phantom tax. There is tax-loss harvesting, wherein an investor sells investments to reduce amounts that may have attracted phantom tax. One of them is using tax-sheltered vehicles such as a Roth IRA or 401(k), where any investment appreciates without the added costs of taxation of unrealized gains. Moreover, realization of trading and other appreciated assets during the low income years will ensure lower taxation.
Source: https://accountingbyte.com/what-does-phantom-tax-mean/