We shall display the categories posts in accordion layout with the Bricks accordion nestable element. Here we shall use two loops builder: 1st one will fetch the terms of a selected taxonomy and 2nd one will fetch the post(s) based on term ID. Checkout the video below
In this demo, I fetched the post categories and their related posts. But you can use it for the custom taxonomy and fetch their related custom post-type content.