After multiple treatment failure
If you are changing to a third, fourth or later combination then the choices become more complicated.
Resistance tests will help identify whether meds are likely to work even in classes to which you have some resistance.
Cross-resistance is common for every type of HIV drug. All PIs have some cross-resistance to other PIs. The same is true for NNRTIs, nukes and integrase inhibitors.
Cross-resistance is complicated. Your care needs to be managed by an expert in drug resistance.