Hi Anees @APK.1 ,
LSM6DS3 and LSM6DSL are pin-to-pin compatible, as you can also see from the two datasheets, p.17.
LSM6DSL has some additional registers, such as the user offset compensation and the Bank B embedded function registers, and is in general more performant, so no issue also on firmware / software side.
You can check in this case the configuration C code on Github, lsm6ds3_read_data_polling.c and lsm6dsl_read_data_polling.c: in the LSM6DSL case, the configuration of internal filters is added, but it is not mandatory.
If my reply answered your question, please click on Select as Best at the bottom of this post. This will help other users with the same issue to find the answer faster.
-Eleon