It’s okay to take vitamin pills and capsules while fasting, as they are unlikely to affect insulin levels, but vitamins and supplements sold as gummies, liquids, or chewable tablets are typically sweetened and can stimulate an insulin response, so, if you use these, take them during your eating window
If you’re taking a daily drug that needs food to be effective, I would not do a 36 hour fast. Maybe check with your doctor to see if you can take the pill on an empty stomach, but I assume they will also just tell you not to do a 36hr fast.