SORTED!
I added the expand promise to the end of the query and changed the .scrollTo item and now it works perfectly. Thank you so much for your help!!
Here’s what the code now reads:
$w("#programsDataset").onReady( () => {
let itemId = wixLocation.query.id;
$w("#programsRepeater").forItems( [itemId], ($item, itemData, index) => {
$item("#programContainer").scrollTo();
$item("#deatailsContainer").expand();
})
})