For fixed categorical covariates, such as a group membership indicator, Kaplan-Meier estimates (1958) can be used to display the curves. For time-dependent covariates this method may not be adequate. But, Simon and Makuch (1984) proposed a technique that evaluates the covariate status of the individuals remaining at risk at each event time.
If you believe there is time-varying confounding, it is better to use some advanced methods such as the marginal structural Cox model compared to the time-dependent Cox model. Here is an example: https://academic.oup.com/aje/article/180/2/160/2739160