You can choose the template variant ID programmatically for the Show Offer action with the below code:
JavaScript
tp.push([
"init",
function () {
tp.offer.show({
offerId: "XY",
templateId: "ABC",
templateVariantId: "123",
displayMode: "modal",
});
},
]);