One thing you can try is using filtfilt()
You have not given specifics about what kind of filter you used and how long your filter is in relation to your signal, but if you look at the reference page for filtfilt
You'll see an example with a simulated ECG waveform that demonstrates the zerophase filtering that gets rid of the delay.